www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Wrong line number for function with parameter of deprecated type

reply Stewart Gordon <smjg_1998 yahoo.com> writes:
Using DMD 0.120, Windows 98SE.

If I declare a function with a parameter of deprecated type, the 
compiler reports the line number where the type is defined.  It should 
report where the function is declared.

----------
deprecated class Qwert {}

void yuiop(Qwert q) {}
----------
D:\My Documents\Programming\D\Tests\bugs\dep6.d(1): class dep6.Qwert is 
deprecated
----------

Stewart.

-- 
My e-mail is valid but not my primary mailbox.  Please keep replies on 
the 'group where everyone may benefit.
Apr 08 2005
parent Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stewart Gordon schrieb am Fri, 08 Apr 2005 10:20:47 +0100:
 Using DMD 0.120, Windows 98SE.

 If I declare a function with a parameter of deprecated type, the 
 compiler reports the line number where the type is defined.  It should 
 report where the function is declared.

 ----------
 deprecated class Qwert {}

 void yuiop(Qwert q) {}
 ----------
 D:\My Documents\Programming\D\Tests\bugs\dep6.d(1): class dep6.Qwert is 
 deprecated
 ----------
Added to DStess as http://dstress.kuehne.cn/nocompile/deprecated_14.d http://dstress.kuehne.cn/nocompile/deprecated_15.d http://dstress.kuehne.cn/nocompile/deprecated_16.d http://dstress.kuehne.cn/nocompile/deprecated_17.d http://dstress.kuehne.cn/nocompile/deprecated_18.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCVlWJ3w+/yD4P9tIRAhCvAKCi1GwlW9/AwZbP/HchqzC2FlkrPwCfcNiw AeA5pt3mFsxjGnqIM963ydc= =Ti2q -----END PGP SIGNATURE-----
Apr 08 2005