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

            Bug ID: 71200
           Summary: [7 regression] ICE (segfault) with -O3
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mar...@mpa-garching.mpg.de
  Target Milestone: ---

Created attachment 38528
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38528&action=edit
test case

Current trunk crashes with a segmentation fault when compiling the attached
test case:

/afs/mpa/data/martin/lsnew/build.linux_gcc/Healpix_cxx>g++ -v -O3 -c
testcase.ii 
Using built-in specs.
COLLECT_GCC=g++
Target: x86_64-pc-linux-gnu
Configured with: /scratch/martin/gccgit/configure --disable-bootstrap
--prefix=/afs/mpa/home/martin/utrunk --enable-languages=c++,fortran
--enable-target=all --enable-checking=release
Thread model: posix
gcc version 7.0.0 20160518 (experimental) [trunk revision
918cd90:e1d3be4:ab297b31366aae41396b333bbe2d7bc9a408ba13] (GCC) 
COLLECT_GCC_OPTIONS='-v' '-O3' '-c' '-shared-libgcc' '-mtune=generic'
'-march=x86-64'
 /afs/mpa/home/martin/utrunk/libexec/gcc/x86_64-pc-linux-gnu/7.0.0/cc1plus
-fpreprocessed testcase.ii -quiet -dumpbase testcase.ii -mtune=generic
-march=x86-64 -auxbase testcase -O3 -version -o /tmp/ccSEE7Bb.s
GNU C++14 (GCC) version 7.0.0 20160518 (experimental) [trunk revision
918cd90:e1d3be4:ab297b31366aae41396b333bbe2d7bc9a408ba13] (x86_64-pc-linux-gnu)
        compiled by GNU C version 5.2.0, GMP version 5.1.3, MPFR version 3.1.3,
MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++14 (GCC) version 7.0.0 20160518 (experimental) [trunk revision
918cd90:e1d3be4:ab297b31366aae41396b333bbe2d7bc9a408ba13] (x86_64-pc-linux-gnu)
        compiled by GNU C version 5.2.0, GMP version 5.1.3, MPFR version 3.1.3,
MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 658ce67c6356d3ab5653424abae932e8
/afs/mpa/data/martin/lsnew/Healpix_cxx/moc_query.cc: In function 'void
{anonymous}::prepPolyHelper(const std::vector<vec3_t<double> >&, const
std::vector<int>&, std::vector<MocQueryComponent>&, bool)':
/afs/mpa/data/martin/lsnew/Healpix_cxx/moc_query.cc:275:6: internal compiler
error: Segmentation fault
 void prepPolyHelper (const vector<vec3> &vv, const vector<int> &P,
      ^~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

With -O2 the code is comiled without complaint.
Also the head of the current 6.1 branch can compile the code with -O3.

I'm sorry, but I currently don't have the time to produce a minimal test case.

Reply via email to