[Issue 23690] New: compilable/cimports2.i:1:1: error: unknown type name '__import'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 12 14:41:00 UTC 2023
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 at puremagic.com
Reporter: ibuclaw at 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;
| ^~
--
More information about the Digitalmars-d-bugs
mailing list