Bug 2149 – Auto variables loose the keyword "auto" in di files generated with -H option.

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2008-06-13T08:23:00Z
Last change time
2015-06-09T01:21:35Z
Keywords
wrong-code
Assigned to
bugzilla
Creator
johnkirollos

Comments

Comment #0 by johnkirollos — 2008-06-13T08:23:25Z
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
Comment #1 by johnkirollos — 2008-06-20T05:23:32Z
Fixed in D versions 2.015 & 1.031.