digitalmars.D.bugs - [Issue 9146] New: Errors in gagged forward reference declarations are detected too late.
- d-bugmail puremagic.com (32/32) Dec 13 2012 http://d.puremagic.com/issues/show_bug.cgi?id=9146
http://d.puremagic.com/issues/show_bug.cgi?id=9146 Summary: Errors in gagged forward reference declarations are detected too late. Product: D Version: D1 & D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: clugdbug yahoo.com.au --- Comment #0 from Don <clugdbug yahoo.com.au> 2012-12-13 01:02:24 PST --- All three of these test cases from bug 4269 correctly generate errors, but the errors occur only in the glue layer. static if(is(typeof(X7))) {} Y7 X7; static if(is(typeof(X11.init))) {} const { Y11 X11; } static if(is(typeof(X12.init))) {} enum X12 = Y12; ---- zoo.d(18): Error: variable zoo.X7 had semantic errors when compiling zoo.d(22): Error: variable zoo.X11 had semantic errors when compiling zoo.d(26): Error: variable zoo.X12 had semantic errors when compiling ---- They should instead give error messages referring to the undefined Y7, Y11, Y12. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 13 2012