[Issue 2149] New: Auto variables loose the keyword "auto" in di files generated with -H option.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 13 06:23:27 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2149
Summary: Auto variables loose the keyword "auto" in di files
generated with -H option.
Product: D
Version: 2.014
Platform: All
OS/Version: All
Status: NEW
Keywords: wrong-code
Severity: minor
Priority: P3
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: johnkirollos at yahoo.com
When generating an interface file using the -H option for a class like this
class Point {
auto x = 10;
uint y = 20;
}
The generated interface file misses the "auto" keyword:
// D import file generated from 'point.d'
class Point
{
x = 10;
uint y = 20;
}
This causes compilation errors when using this interface file:
no identifier for declarator x
Error: identifier 'x' is not defined
Error: x is used as a type
variable voids have no value
--
More information about the Digitalmars-d-bugs
mailing list