www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 541] New: Incorrect line number for a function parameter of a deprecated class type

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: smjg 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.


-- 
Nov 17 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=541


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME





Works correctly for dmd 1.031 and 2.015


-- 
Jun 28 2008