[Issue 707] New: incorrect error lines for failed aliases
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 21 07:23:35 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=707
Summary: incorrect error lines for failed aliases
Product: D
Version: 0.177
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: thomas-dloop at kuehne.cn
http://dstress.kuehne.cn/nocompile/a/alias_34_B.d
#
# Foofunc f; // line A
# alias int function(Foo) Foofunc; // line B
#
DMD complains about line A but fails to mention the cause in line B.
http://dstress.kuehne.cn/nocompile/alias_17.d
#
# void test() {}
#
# int _test; // line C
# alias _test test; // line D
#
# void check(){
# test = 1; // line E
# }
DMD complains about lines C and E but fails to mention the cause in line D.
http://dstress.kuehne.cn/nocompile/a/alias_36_E.d
#
# template bar(T) {
# void foo() {
# }
# }
#
# alias bar!(long).foo foo; // line F
# alias bar!(char).foo foo; // line G
#
# void main() {
# foo(); // line H
# }
#
DMD complains about line H but fails to mention the cause in lines G and F.
--
More information about the Digitalmars-d-bugs
mailing list