This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug objc++/66504] New: ICE using C++ exceptions in Objective-C++


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66504

            Bug ID: 66504
           Summary: ICE using C++ exceptions in Objective-C++
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: objc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: admin at maniacsvault dot net
  Target Milestone: ---

Created attachment 35756
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35756&action=edit
Minimal example

A rather simple program using C++ exceptions in Objective-C++ can generate an
ICE.

exceptionice.mm: In function 'void Problem()':
exceptionice.mm:1:6: internal compiler error: in objc_eh_runtime_type, at
objc/objc-next-runtime-abi-01.c:2804
 void Problem()
      ^

Compiled on Mac OS X 10.4 on a PowerMac G4 with the following configuration:

CC=gcc-4.2 CXX=g++-4.2 AS=/opt/cctools/usr/bin/as
AS_FOR_TARGET=/opt/cctools/usr/bin/as ../GCC/configure --prefix=/opt/gcc/5
--disable-nls --enable-languages=c,c++,objc,obj-c++,lto --disable-multilib
--with-dwarf2

Command line used to get the error is:

/opt/gcc/5/bin/g++ exceptionice.mm


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]