https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82144
Bug ID: 82144 Summary: ice in add_dwarf_attr with alignas Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- From the C++ testsuite, source code file ./g++.dg/cpp0x/alignas7.C won't compile when -g is used. $ ~/gcc/results/bin/gcc -g ./g++.dg/cpp0x/alignas7.C ./g++.dg/cpp0x/alignas7.C: In instantiation of ‘struct A<8, char>’: ./g++.dg/cpp0x/alignas7.C:13:1: required from here ./g++.dg/cpp0x/alignas7.C:7:24: internal compiler error: in add_dwarf_attr, at dwarf2out.c:4132 enum alignas (N) E : T; ^ 0xa1ff0e add_dwarf_attr ../../trunk/gcc/dwarf2out.c:4132 0xa1ff88 add_AT_unsigned ../../trunk/gcc/dwarf2out.c:4215 0xa1ff88 add_alignment_attribute ../../trunk/gcc/dwarf2out.c:20197 0xa571b7 gen_enumeration_type_die ../../trunk/gcc/dwarf2out.c:21261 $ ~/gcc/results/bin/gcc -v Using built-in specs. COLLECT_GCC=/home/dcb/gcc/results/bin/gcc COLLECT_LTO_WRAPPER=/home/dcb/gcc/results.251861/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../trunk/configure --prefix=/home/dcb/gcc/results.251861 --disable-bootstrap --disable-multilib --disable-werror --enable-checking=df,extra,fold,rtl,yes --enable-languages=c,c++,fortran Thread model: posix gcc version 8.0.0 20170908 (experimental) (GCC) The bug seems to occur between revisions 251689 and 251751