Bug 8190 – Externally defined struct error message

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-06-03T03:54:00Z
Last change time
2015-06-09T05:11:39Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-06-03T03:54:43Z
extern(C) struct Foo; extern (C) Foo bar() { assert(0); } void main() {} DMD 2.060alpha gives no line numbers: Error: struct test.Foo unknown size Error: struct test.Foo no size yet for forward reference (Severiry is Major according to Don wishes on this kind of errors.)
Comment #1 by k.hara.pg — 2012-06-06T06:05:20Z
Comment #2 by github-bugzilla — 2012-06-11T05:49:07Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e23c00319834052639aaee473fa28cb614be4b9d fix Issue 8190 - Externally defined struct error message https://github.com/D-Programming-Language/dmd/commit/dd0d9c7cd96dd1b39dbb91bbc015308b241ca835 Merge pull request #985 from 9rnsr/fix8190 Issue 8190 - Externally defined struct error message