March 21 [Issue 24447] New: ImportC: extern symbols cannot have initializers | ||||
---|---|---|---|---|
| ||||
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. -- |
Copyright © 1999-2021 by the D Language Foundation