April 08, 2005 Wrong line number for function with parameter of deprecated type | ||||
---|---|---|---|---|
| ||||
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. |
April 08, 2005 Re: Wrong line number for function with parameter of deprecated type | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | -----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----- |
Copyright © 1999-2021 by the D Language Foundation