[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug tree-optimization/31769]  New: ICE with OpenMP and exceptions
From:       "supermar at gmx dot de" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2007-04-30 23:01:12
Message-ID: bug-31769-13974 () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]

Hi,

The following small program gives ICE when compiled like this:

g++ -Wall -fopenmp -O2 -I$POLDEST/ext/include -E -o./test_pp.cc ./test.cc
g++ -Wall -fopenmp -O2 -L$POLDEST/ext/lib -o./test ./test_pp.cc -lblitz -lgomp
./test.cc: In function ‘int main()’:
./test.cc:3: internal compiler error: Segmentation fault

When removing the 'try-catch'-part it works fine.

----
#include <blitz/array.h>

int main()
{
  try
  {
    blitz::Array<float,1> transOrig( 10);
    blitz::Array<float,1> trans( 10);
    blitz::Range myRange( 0, 9);

#pragma omp parallel for
    for( int i = 0; i < 2; ++i)
    {
      trans += transOrig( myRange);
    }
  }
  catch( std::exception)
  {}
}

Here the preprocessed source: http://data.marssoft.de/attachment-bug-gcc.bz2
And my specs: ~> gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: [...]/gcc-4.2-branch/configure -v --enable-languages=c,c++,f95
--prefix=[...]/extgcc-x86_64_gcc4-r124295 --enable-shared --with-system-zlib
--without-included-gettext --enable-threads=posix --enable-nls
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
--enable-debug --enable-gtk-cairo --with-mpfr=[...]/extgcc-x86_64_gcc4-r124295
--with-gmp=[...]/extgcc-x86_64_gcc4-r124295 --disable-werror
--enable-checking=release --disable-multilib --enable-bootstrap
Thread model: posix
gcc version 4.2.0 20070430 (prerelease)


-- 
           Summary: ICE with OpenMP and exceptions
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: supermar at gmx dot de
  GCC host triplet: x86_64-unknown-linux-gnu


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic