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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Jason House <[email protected]> 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: -------