https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82115
Bug ID: 82115 Summary: ICE on (valid) C++11 code: Segmentation fault signal terminated program cc1plus Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu Target Milestone: --- It seems to be a recent regression. $ g++tk -v Using built-in specs. COLLECT_GCC=g++tk COLLECT_LTO_WRAPPER=/home/su/software/tmp/gcc/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto --prefix=/home/su/software/tmp/gcc/gcc-trunk --disable-bootstrap Thread model: posix gcc version 8.0.0 20170905 (experimental) [trunk revision 251739] (GCC) $ $ g++-6.2 -c small.cpp $ $ g++tk -c small.cpp g++tk: internal compiler error: Segmentation fault signal terminated program cc1plus Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. $ --------------------------------------------- struct A { int const u = 0; }; struct B : A { constexpr B (int const *p) : v (p) {} int const *v; } constexpr b (&b.u); template < typename > void foo () { b; }