[Issue 4434] Assertion failed: (tn->mod & MODimmutable || tn->mod & MODshared), function check, file mtype.c, line 887.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 10 13:10:48 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4434



--- Comment #1 from Don <clugdbug at yahoo.com.au> 2010-08-10 13:10:44 PDT ---
This one seems to be really general. I think it's the cause of very many
compiler bugs. Here's a pile of cases which ICE.

struct MyStruct {}
alias const (MyStruct)* MyGoodConst; //OK
alias const MyStruct* MyConst; //ice

alias shared MyStruct* MyShared; //ice
alias shared MyStruct[] MySharedArray; //ice

alias int MyInt;
alias const MyInt[3] MyConstInt; // ice

It happens with const, shared, or immutable, and with *, [], [3], etc --
anything which is a BasicType2.

Interestingly it doesn't seem to happen with typedef, even though the code in
parse.c is almost identical.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list