digitalmars.D.bugs - [Issue 24447] New: ImportC: extern symbols cannot have initializers
- d-bugmail puremagic.com (21/21) Mar 21 https://issues.dlang.org/show_bug.cgi?id=24447
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: nobody puremagic.com Reporter: dave287091 gmail.com 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. --
Mar 21