Bug 544 – Variable declared of a deprecated type (other than a class) is not caught
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-11-17T14:04:00Z
Last change time
2014-02-15T13:20:00Z
Keywords
accepts-invalid
Assigned to
bugzilla
Creator
smjg
Comments
Comment #0 by smjg — 2006-11-17T14:04:16Z
The types defined in this code are all deprecated. However, the compiler fails to report a single error for the variables declared of these types.
----------
deprecated {
struct DepStruct {}
union DepUnion {}
enum DepEnum { A }
alias int DepAlias;
typedef int DepTypedef;
}
DepStruct aStruct;
DepUnion aUnion;
DepEnum anEnum;
DepAlias anAlias;
DepTypedef aTypedef;
----------