https://issues.dlang.org/show_bug.cgi?id=24447
Issue ID: 24447
Summary: ImportC: extern symbols cannot have initializers
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: ImportC, rejects-valid
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
The following C code is rejected:
```
extern int x = 3;
```
Error: variable `a.x` extern symbols cannot have initializers
As far as I can tell this is legal C, if unidiomatic.
--
