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

            Bug ID: 71057
           Summary: ICE in schedule_generic_params_dies_gen, at
                    dwarf2out.c:24142
           Product: gcc
           Version: 6.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: schnetter at gmail dot com
  Target Milestone: ---

A self-built version of GCC
{{{
$
/Users/eschnett/src/spack/opt/spack/darwin-x86_64/clang-7.3.0-apple/gcc-6.1.0-t6ty2xtlhizrs3elacvgpludfccnekb2/bin/g++
--version
g++ (GCC) 6.1.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
}}}

aborts with an ICE for this command
{{{
Users/eschnett/src/spack/opt/spack/darwin-x86_64/clang-7.3.0-apple/gcc-6.1.0-t6ty2xtlhizrs3elacvgpludfccnekb2/bin/g++
-g -S fun_test.ii
}}}

with this error
{{{
fun/fun_test.cc:41:1: internal compiler error: in
schedule_generic_params_dies_gen, at dwarf2out.c:24142
 }
 ^

fun/fun_test.cc:41:1: internal compiler error: Abort trap: 6
g++: internal compiler error: Abort trap: 6 (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
}}}

for the preprocessed C++ source code available at
<https://gist.github.com/eschnett/1825784e6da47b80741ddbbd0d742db4>.

Leaving out the "-g" flag avoids the error.

This is on OS X with an x86-64 CPU.

Reply via email to