Thread overview | |||||
---|---|---|---|---|---|
|
March 27, 2010 [Issue 4017] New: const initializer cannot evaluate size of forward referenced alias | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from Rainer Schuetze <r.sagitario@gmx.de> 2010-03-27 06:00:38 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: ------- |
February 08, 2011 [Issue 4017] const initializer cannot evaluate size of forward referenced alias | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rainer Schuetze | 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 --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2011-02-07 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: ------- |
February 08, 2011 [Issue 4017] const initializer cannot evaluate size of forward referenced alias | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rainer Schuetze | http://d.puremagic.com/issues/show_bug.cgi?id=4017 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug@yahoo.com.au --- Comment #2 from Don <clugdbug@yahoo.com.au> 2011-02-07 22:41:54 PST --- 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: ------- |
Copyright © 1999-2021 by the D Language Foundation