[Issue 23691] New: compilable/test22294.i:16:1: error: unknown type name 'this'
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Feb 12 14:44:22 UTC 2023
    
    
  
https://issues.dlang.org/show_bug.cgi?id=23691
          Issue ID: 23691
           Summary: compilable/test22294.i:16:1: error: unknown type name
                    'this'
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org
When compiling with `gcc -std=c11 -fsyntax-only`
---
compilable/test22294.i:16:1: error: unknown type name ‘this’
   16 | this should never be parsed
      | ^~~~
compilable/test22294.i:16:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘never’
   16 | this should never be parsed
      |             ^~~~~
compilable/test22294.i:16:13: error: unknown type name ‘never’
---
Original source content:
---
/*********************************************************/
// https://issues.dlang.org/show_bug.cgi?id=22294
#pragma whatever
enum { Ax, Bx, Cx };
#pragma
_Static_assert(Ax == 0 && Bx == 1 && Cx == 2, "in");
int array22924[Cx];
// Note that ^Z means end of file, this file ends with one
#pragma ^Z
this should never be parsed
--
    
    
More information about the Digitalmars-d-bugs
mailing list