February 12, 2023 [Issue 23690] New: compilable/cimports2.i:1:1: error: unknown type name '__import' | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23690 Issue ID: 23690 Summary: compilable/cimports2.i:1:1: error: unknown type name '__import' 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 the test with `gcc -std=c11 -fsyntax-only` compilable/cimports2.i:1:1: error: unknown type name ‘__import’ 1 | __import imports.cimports2a; | ^~~~~~~~ compilable/cimports2.i:1:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token 1 | __import imports.cimports2a; | ^ compilable/cimports2.i:2:1: error: unknown type name ‘__import’ 2 | __import imports.cimports2b; | ^~~~~~~~ compilable/cimports2.i:2:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token 2 | __import imports.cimports2b; | ^ compilable/cimports2.i:4:11: error: ‘xx’ undeclared here (not in a function) 4 | int *p = &xx; | ^~ -- |
Copyright © 1999-2021 by the D Language Foundation