From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22016 invoked by alias); 9 May 2008 17:06:33 -0000 Received: (qmail 21509 invoked by uid 48); 9 May 2008 17:05:49 -0000 Date: Fri, 09 May 2008 17:06:00 -0000 Subject: [Bug middle-end/36191] New: can't use complex in a eh region if non-call-exceptions is enabled X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "espindola at google dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-05/txt/msg00729.txt.bz2 If the program ----------------------- __complex__ double f (__complex__ double x, double y) { try { return x / y; } catch (char *s) { return x; } } ---------------------- is compiled with "cc1plus bug.cc -fnon-call-exceptions", it fails with the error: /home/espindola/bug.cc:7: error: statement marked for throw, but doesn't D.1661 = __divdc3 (D.1667, D.1668, D.1669, D.1670); /home/espindola/bug.cc:7: internal compiler error: verify_stmts failed -- Summary: can't use complex in a eh region if non-call-exceptions is enabled Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: espindola at google dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36191