www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11728] New: compile error in std.bigint and -profile

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11728

           Summary: compile error in std.bigint and -profile
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: yuri.musashi.miwa.tamura gmail.com


--- Comment #0 from Musashi Tamura <yuri.musashi.miwa.tamura gmail.com>
2013-12-12 03:43:33 PST ---
// aaa.d
import std.bigint;
void main() {
    BigInt a = "0";
}

 dmd -profile aaa
Error: 'std.internal.math.biguintcore.BigUint.__invariant' is not nothrow This error is new in v2.064. (does not occur in v2.063) Issue 10295 seems similar, but occurs in v2.063. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 12 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11728



--- Comment #1 from Musashi Tamura <yuri.musashi.miwa.tamura gmail.com>
2013-12-12 03:47:46 PST ---
Issue 10295 occurs in v2.063 and v2.064.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 12 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11728


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies gmail.com


--- Comment #2 from yebblies <yebblies gmail.com> 2013-12-13 01:52:53 EST ---
Same sort of thing as issue 11375 - the nothrow inference/checking in
FuncDeclaration::semantic is a mess.  The general problem is the compiler
checks/infers nothrowness, then adds more stuff to the function body.  The
error occurs because later the compiler uses blockExit(tf->isnothrow) to decide
if the profiling exit code needs to be wrapped in a try-finally or not.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 12 2013