[Issue 5216] New: /+ parsed incorrectly in comments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 14 04:05:37 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5216
Summary: /+ parsed incorrectly in comments
Product: D
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: jmdavisProg at gmx.com
--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list