[Issue 5138] New: Special token sequence

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 30 16:51:28 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5138

           Summary: Special token sequence
           Product: D
           Version: D1 & D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: jemandy at earthlink.net


--- Comment #0 from John Mandeville <jemandy at earthlink.net> 2010-10-30 16:50:32 PDT ---
If I understand the documentation correctly, this should not compile:

#line 99L

This is because the fist token following line is supposed to be an Integer, not
an IntegerLiteral.  Thus the suffix "L" should not be allowed.  However, this
compiles on both D1 and D2.

The suffix here is silly but harmless.  I don't much care whether it should be
allowed.  But it is still worth noting that the documentation is inconsistent
with the compiler behavior.

Tested on Windows with v1.063, v1.065, v2.049, and v2.050.

-- 
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