April 19, 2022
https://issues.dlang.org/show_bug.cgi?id=23037

          Issue ID: 23037
           Summary: importC: type with only type-qualifier doesn't work
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ImportC
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: duser@neet.fi
                CC: duser@neet.fi

const a;                  // ignored, doesn't declare "a"
const b = 1;              // syntax error
int c = sizeof(const);    // segfault in src/dmd/expression.d:3397
int d = (const)0;         // segfault in src/dmd/mtype.d:2710
int *e = (const*)0;       // segfault in src/dmd/mtype.d:4050
enum E : const { ee=1, }; // assert in src/dmd/dsymbolsem.d:2164

depending on what C11 allows, these should be either rejected in the parser or made to default to "int" like in other compilers

the line numbers are at dmd commit 41ca11ebf3cc9086906958ea448b69bf37dc36a0

--