[Issue 19315] New: #line inside token string affect outside code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 19 19:35:42 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19315
Issue ID: 19315
Summary: #line inside token string affect outside code
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: doob at me.com
The static assert in the following code unexpectadely passes:
enum code = q{
#line 10
};
static assert(__LINE__ == 11);
"#line 10" when used inside a token string affects the code outside of the
string.
--
More information about the Digitalmars-d-bugs
mailing list