Thread overview |
---|
February 12, 2007 [Issue 951] New: Missing line number: no constructor provided for a class derived from a class with no default constructor | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=951 Summary: Missing line number: no constructor provided for a class derived from a class with no default constructor Product: D Version: 1.005 Platform: PC OS/Version: Windows Status: NEW Keywords: diagnostic Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: smjg@iname.com ---------- class Base { this(int x) {} } class Derived : Base {} ---------- mln_no_def_this.d: constructor mln_no_def_this.Derived.this no match for implicit super() call in constructor ---------- Presumably, DMD tries to find a line number for the implicit default constructor in Derived, but can't find one and so doesn't give one. If a constructor without a super call is supplied, then the same error occurs but with a line number. When no constructor has been defined, it should give an appropriate line number, such as the line on which the class definition begins. And perhaps a slightly different error message mln_no_def_this.d(5): class mln_no_def_this.Derived no match for implicit super() call in implicit default constructor -- |
March 29, 2007 [Issue 951] Missing line number: no constructor provided for a class derived from a class with no default constructor | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=951 ------- Comment #1 from thomas-dloop@kuehne.cn 2007-03-29 14:30 ------- Added to DStress as http://dstress.kuehne.cn/nocompile/t/this_15_A.d -- |
July 09, 2008 [Issue 951] Missing line number: no constructor provided for a class derived from a class with no default constructor | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=951 clugdbug@yahoo.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from clugdbug@yahoo.com.au 2008-07-09 07:11 ------- Fixed DMD1.032 -- |
July 10, 2008 [Issue 951] Missing line number: no constructor provided for a class derived from a class with no default constructor | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=951 ------- Comment #3 from bugzilla@digitalmars.com 2008-07-09 22:37 ------- Fixed dmd 1.032 and 2.016 -- |
Copyright © 1999-2021 by the D Language Foundation