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: nob...@puremagic.com
          Reporter: d...@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.

--

Reply via email to