[Issue 7524] New: #line __LINE__ doesn't parse on D2.020 and later
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 16 12:25:15 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7524
Summary: #line __LINE__ doesn't parse on D2.020 and later
Product: D
Version: D1 & D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2012-02-16 12:25:11 PST ---
Two parser problems, different bugs but closely related:
(A) D2-only.
#line __LINE__ "y.d"
crash.d(3): #line integer ["filespec"]\n expected
crash.d(3): Declaration expected, not '"y.d"'
But #line 7 __FILE__ works
>From the spec, it's not clear if this should work, or not. But it works on D1,
and it worked on prehistoric D2 (D2.012, for example).
(B) Doing things like:
#line 47 __VERSION__
#line 888 __DATE__
causes the compiler to hang on both D1 and D2.
--
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