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: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@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: -------

Reply via email to