[Issue 2080] ICE(mangle.c) alias corrupts type inference of static variables
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 17 23:56:16 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2080
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE(D1 only, mangle.c) |ICE(mangle.c) alias
|alias corrupts type |corrupts type inference of
|inference of static |static variables
|variables |
--- Comment #7 from Don <clugdbug at yahoo.com.au> 2009-11-17 23:56:15 PST ---
This applies to D2 as well. The D2 test case (below) generates:
"Error: forward reference to type int*" on D1.
On D2 it ICEs in mangle.c(81) fd && fd->inferRetType
Removing the alias fixes both the ICE and the forward reference error.
Happens with typedef as well as alias.
-----
alias int * any_old_alias;
typeof(foo) bar = foo;
const int * foo = null;
--
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