www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9070] New: nothrow of constructer/destructor isn't correct

reply d-bugmail puremagic.com writes:
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: nobody puremagic.com
        ReportedBy: zan77137 nifty.com



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: -------
Nov 24 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9070


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid



https://github.com/D-Programming-Language/dmd/pull/1317

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 24 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9070




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/cff6404b990fe5d0a88cfc3a2abba86d5139a36e
fix Issue 9070 - nothrow of constructer/destructor isn't correct

https://github.com/D-Programming-Language/dmd/commit/f9fe4a8a4fa9f25a5f33007c455e0be6a758a1bb


Issue 9070 - nothrow of constructer/destructor isn't correct

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 03 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9070


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 04 2012