digitalmars.D.bugs - [Issue 4017] New: const initializer cannot evaluate size of forward referenced alias
- d-bugmail puremagic.com (40/40) Mar 27 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4017
- d-bugmail puremagic.com (12/12) Feb 07 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4017
- d-bugmail puremagic.com (10/10) Feb 07 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4017
http://d.puremagic.com/issues/show_bug.cgi?id=4017 Summary: const initializer cannot evaluate size of forward referenced alias Product: D Version: 2.041 Platform: Other OS/Version: Windows Status: NEW Keywords: patch, rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: r.sagitario gmx.de PDT --- struct _A { uint data; } const A_SIZE = (A.sizeof); alias _A A; yields: test.d(9): Error: size of type _A is not known Here's the patch Index: expression.c =================================================================== --- expression.c (revision 421) +++ expression.c (working copy) -6096,6 +6096,7 #endif else { + e1 = e1->semantic(sc); e = e1->type->dotExp(sc, e1, ident); if (!(flag && e->op == TOKdotti)) // let CallExp::semantic() handle this e = e->semantic(sc); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 27 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4017 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |WORKSFORME 21:04:28 PST --- Can't reproduce the error. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 07 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4017 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug yahoo.com.au Yup, fixed in 2.048 and 1.063. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 07 2011