digitalmars.D.bugs - [Issue 7915] New: Forward reference to two-level nested static if symbols fails within struct
- d-bugmail puremagic.com (35/35) Apr 15 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7915
- d-bugmail puremagic.com (11/11) Apr 15 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7915
- d-bugmail puremagic.com (7/8) Apr 15 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7915
http://d.puremagic.com/issues/show_bug.cgi?id=7915 Summary: Forward reference to two-level nested static if symbols fails within struct Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: peter.alexander.au gmail.com --- Comment #0 from Peter Alexander <peter.alexander.au gmail.com> 2012-04-15 07:33:07 PDT --- This code fails in DMD 2.059, but worked in 2.058 ----------------------------- struct A { public: static immutable A a = A(0); static if (true) static if (true) this(int) {} } ----------------------------- % dmd test.d test.d(4): Error: more initializers than fields (0) of A ----------------------------- If you remove one of the static ifs, the error goes away. If you move the definition of 'a' below the constructor, the error goes away. In this case I am trying to forward reference a constructor, but it also happens with other symbols. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 15 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7915 Peter Alexander <peter.alexander.au gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Peter Alexander <peter.alexander.au gmail.com> 2012-04-15 07:50:50 PDT --- *** This issue has been marked as a duplicate of issue 7911 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 15 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7915 --- Comment #2 from Peter Alexander <peter.alexander.au gmail.com> 2012-04-15 07:51:25 PDT --- (In reply to comment #1)*** This issue has been marked as a duplicate of issue 7911 ***Apologies, didn't notice the duplicate. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 15 2012