Bug 543 – Function return of a deprecated type 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:03:00Z
Last change time
2014-02-15T13:21:08Z
Keywords
accepts-invalid
Assigned to
bugzilla
Creator
smjg

Comments

Comment #0 by smjg — 2006-11-17T14:03:57Z
The types defined in this code are all deprecated. However, the compiler fails to report a single error for their use as function return types. ---------- deprecated { class DepClass {} struct DepStruct {} union DepUnion {} enum DepEnum { A } alias int DepAlias; typedef int DepTypedef; } DepClass returnClass(); DepStruct returnStruct(); DepUnion returnUnion(); DepEnum returnEnum(); DepAlias returnAlias(); DepTypedef returnTypedef(); void useFunction(DepClass function()); void useDelegate(DepStruct delegate()); ----------
Comment #1 by bugzilla — 2008-07-09T22:34:00Z
Fixed dmd 1.032 and 2.016