February 12, 2023 [Issue 23691] New: compilable/test22294.i:16:1: error: unknown type name 'this' | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: ibuclaw@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 -- |
Copyright © 1999-2021 by the D Language Foundation