Summary: /+ parsed incorrectly in comments
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Jonathan M Davis <> 2010-11-14 04:04:26 
PST ---
This fails to compile

void main()
    // /+

giving this error

test.d(7): unterminated /+ +/ comment
test.d(7): found 'EOF' when expecting '}' following compound statement

It seems to be fine if it's not within a /+ +/ block, but once it is, the //
comment is ignored, and since /+ is intended for commenting out code rather
than just comments, this is not good behavior. All /+ and +/ should be ignored
on lines where they are after //.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to