https://issues.dlang.org/show_bug.cgi?id=24032

          Issue ID: 24032
           Summary: Compiler is parsing string parameters to Templates
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nob...@puremagic.com
          Reporter: pun...@coverify.org

Works with dmd-2.081.2.
Error with dmd-2.085 and also with current release dmd-2.104

$ dmd /tmp/test.d
/tmp/test.d(3): Error: `0X` isn't a valid integer literal, use `0X0` instead
/tmp/test.d(4): Error: `0B` isn't a valid integer literal, use `0B0` instead


// test.d
class Foo(string str) {}
void main() {
  Foo!q{0X} foo;
  Foo!q{0B} bar;
}

--

Reply via email to