From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26550 invoked by alias); 2 Oct 2015 01:06:05 -0000 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 Received: (qmail 26519 invoked by uid 48); 2 Oct 2015 01:06:00 -0000 From: "dougmencken at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug objc++/61759] [ICE] [objc] reaching gcc_unreachable in objc_eh_runtime_type at objc/objc-next-runtime-abi-01.c Date: Fri, 02 Oct 2015 01:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: objc++ X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dougmencken at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-10/txt/msg00128.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61759 --- Comment #6 from Douglas Mencken --- Looks like I found the root of the issue ~ GCC ICEs when it meets C++ exception handling (try+catch) $ cat main.mm #include #include int main (void) { try { throw 0; } catch (int & e) { std::cout << "caught" << std::endl; } NSString *name = @"GNUstep !"; NSAutoreleasePool *pool; pool = [NSAutoreleasePool new]; [pool drain]; } $ g++ main.mm -o test.out -framework Foundation -lobjc main.mm: In function 'int main()': main.mm:4:5: internal compiler error: in objc_eh_runtime_type, at objc/objc-next-runtime-abi-01.c:2804 int main (void) ^ libbacktrace could not find executable to open Please submit a full bug report,