[Issue 4709] ICE(mtype.c): undefined variable in const struct
http://d.puremagic.com/issues/show_bug.cgi?id=4709 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||patch --- Comment #3 from Don clugd...@yahoo.com.au 2010-11-06 23:29:56 PDT --- My patch for bug 4434 fixes this. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4709] ICE(mtype.c): undefined variable in const struct
http://d.puremagic.com/issues/show_bug.cgi?id=4709 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||DUPLICATE --- Comment #4 from Walter Bright bugzi...@digitalmars.com 2010-11-07 12:27:23 PST --- *** This issue has been marked as a duplicate of issue 4434 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4709] ICE(mtype.c): undefined variable in const struct
http://d.puremagic.com/issues/show_bug.cgi?id=4709 Jeremy jerminatorster+db...@gmail.com changed: What|Removed |Added CC||jerminatorster+db...@gmail. ||com --- Comment #2 from Jeremy jerminatorster+db...@gmail.com 2010-11-06 17:02:59 PDT --- I get this same bug using 'alias const', eg: alias int ITEMIDLIST_ABSOLUTE; alias const ITEMIDLIST_ABSOLUTE *PCIDLIST_ABSOLUTE; Gives the same compile error: Assertion failure: 'tn-mod MODimmutable || tn-mod MODconst' on line 875 in file 'mtype.c' This also happens if you use a struct: struct ITEMIDLIST_ABSOLUTE { int foo; } alias const ITEMIDLIST_ABSOLUTE *PCIDLIST_ABSOLUTE; But *not* if you use a primitive type directly: alias const int *PCIDLIST_ABSOLUTE; Removing the const also avoids the error. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---