D issues are now
tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Summary: |
Variable declared of a deprecated type (other than a class) is not caught |
Product: |
D
|
Reporter: |
Stewart Gordon <smjg> |
Component: |
dmd | Assignee: |
Walter Bright <bugzilla> |
Status: |
RESOLVED
FIXED
|
Severity: |
normal
|
Keywords: |
accepts-invalid |
Priority: |
P2
|
Version: |
D1 (retired) |
Hardware: |
x86 |
OS: |
Windows |
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;
----------
Comment 1
Walter Bright
2008年07月09日 22:34:17 UTC
Fixed dmd 1.032 and 2.016