[Issue 24032] New: Compiler is parsing string parameters to Templates
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Jul  6 10:29:42 UTC 2023
    
    
  
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: nobody at puremagic.com
          Reporter: puneet at 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;
}
--
    
    
More information about the Digitalmars-d-bugs
mailing list