http://d.puremagic.com/issues/show_bug.cgi?id=7254

           Summary: [ICE backend\cod3.c 446] With wrong return in
                    try-catch
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2012-01-09 12:27:48 PST ---
alias immutable(char)[1] Foo;
Foo bar() {
    try {
        return ""; // wrong
    } catch (Exception e) {
        Foo result;
        return result;
    }
}
void main() {}


DMD 2.058head:

Internal error: backend\cod3.c 446

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

Reply via email to