[Issue 541] New: Incorrect line number for a function parameter of a deprecated class type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 17 12:00:33 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=541
Summary: Incorrect line number for a function parameter of a
deprecated class type
Product: D
Version: 0.174
Platform: All
OS/Version: All
Status: NEW
Keywords: diagnostic
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: smjg at iname.com
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.
--
More information about the Digitalmars-d-bugs
mailing list