Bug 541 – Incorrect line number for a function parameter of a deprecated class type
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2006-11-17T14:00:00Z
Last change time
2014-02-15T13:22:19Z
Keywords
diagnostic
Assigned to
bugzilla
Creator
smjg
Comments
Comment #0 by smjg — 2006-11-17T14:00:31Z
If a deprecated class is used as a function parameter, the compiler reports an error at the line at which the class is defined.
----------
deprecated class DepClass {}
void user(DepClass obj) {}
----------
D:\My Documents\Programming\D\Tests\bugs\dep_parameter_class.d(1): class dep_parameter_class.DepClass is deprecated
----------
The error should be at line 3, which tries to use the deprecated class.