[Issue 1843] Bogus unreachable statement on forward referenced struct, lacks line number
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 16 04:49:18 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1843
matti.niemenmaa+dbugzilla at iki.fi changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |340
nThis| |
Severity|normal |major
Keywords| |rejects-valid
Platform|Other |All
Summary|Unreachable statement |Bogus unreachable statement
|warning lacks line number |on forward referenced
| |struct, lacks line number
------- Comment #1 from matti.niemenmaa+dbugzilla at iki.fi 2008-02-16 06:49 -------
No, this is actually worse. The warning comes from the following minimal
example, and it has to do with forward referencing:
class ZipEntry {
ZipEntryInfo info;
this() {}
}
struct ZipEntryInfo {}
Move ZipEntryInfo above ZipEntry and the warnings disappear.
--
More information about the Digitalmars-d-bugs
mailing list