[Issue 4293] New: Wrong line number with @disable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 7 19:16:48 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4293
Summary: Wrong line number with @disable
Product: D
Version: 2.041
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: jason.james.house at gmail.com
--- Comment #0 from Jason House <jason.james.house at gmail.com> 2010-06-07 19:16:47 PDT ---
$ cat test.d
struct x{
@disable this(); // line 2
this(bool b){ _b = b; }
bool _b;
}
int main(){
x; // line 7, the real source of the error
return cast(int) x._b;
}
$ dmd test.d
test.d(2): Error: constructor test.x.this default constructor not allowed for
structs
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list