http://d.puremagic.com/issues/show_bug.cgi?id=9070
Summary: nothrow of constructer/destructor isn't correct
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from SHOO <[email protected]> 2012-11-24 04:19:27 PST ---
This code doesn't work:
struct A(T)
{
this(U)(U x) { }
~this(){}
}
void main()
{
A!int a = A!short();
}
--------
Result:
main.d(4): Error: x.~this is not nothrow
main.d(4): Error: constructor main.A!(int).A.__ctor!(short).this 'this' is
nothrow yet may throw
main.d(9): Error: template instance main.A!(int).A.__ctor!(short) error
instantiating
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------