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/17562] New: Objective-C Exception Handling Causes ICE


Compiling an Objective-C source file to object code causes an
ICE/seg fault:

$ /usr/local/gcc342/bin/gcc -c -fobjc-exceptions \
-fconstant-string-class=NSConstantString \
-I/usr/GNUstep/System/Library/Headers \
-L/usr/GNUstep/System/Library/Libraries -lobjc Cup.m
Cup.m: In function `-[Cup setLevel:]':
Cup.m:31: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions

Code snippet:

24     if ( level > 100 ) {
25         // throw overflow
26         NSException *e = [CupOverflowException
27             exceptionWithName: @"CupOverflowException"
28             reason: @"The level is above 100"
29             userInfo: nil];
30         //[e raise];
31         @throw e;

-- 
           Summary: Objective-C Exception Handling Causes ICE
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: objc
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kwall at kurtwerks dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17562


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