[Bug c++/71166] New: ICE with nested constexpr/initializer
max at duempel dot org
gcc-bugzilla@gcc.gnu.org
Tue May 17 16:33:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71166
Bug ID: 71166
Summary: ICE with nested constexpr/initializer
Product: gcc
Version: 6.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: max at duempel dot org
Target Milestone: ---
Created attachment 38508
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38508&action=edit
A source file which reproduces the problem
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 6.1.1-3'
--with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-6 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 6.1.1 20160511 (Debian 6.1.1-3)
Compile the attached source with "g++ -c foo.cxx":
/tmp/foo.cxx: In constructor 'constexpr BarContainer::BarContainer()':
/tmp/foo.cxx:8:8: in constexpr expansion of 'Bar()'
/tmp/foo.cxx:5:22: in constexpr expansion of 'MakeFoo()'
/tmp/foo.cxx:8:8: internal compiler error: in cxx_eval_call_expression, at
cp/constexpr.c:1449
struct BarContainer {
^~~~~~~~~~~~
0x6f9649 cxx_eval_call_expression
../../src/gcc/cp/constexpr.c:1449
0x6fab6f cxx_eval_constant_expression
../../src/gcc/cp/constexpr.c:3556
0x6fae5d cxx_eval_constant_expression
../../src/gcc/cp/constexpr.c:3616
0x6fc651 cxx_eval_store_expression
../../src/gcc/cp/constexpr.c:3123
0x6fa39c cxx_eval_constant_expression
../../src/gcc/cp/constexpr.c:3633
0x6f9f08 cxx_eval_constant_expression
../../src/gcc/cp/constexpr.c:3901
0x6fa185 cxx_eval_constant_expression
../../src/gcc/cp/constexpr.c:3672
0x6fa185 cxx_eval_constant_expression
../../src/gcc/cp/constexpr.c:3672
0x6fab90 cxx_eval_constant_expression
../../src/gcc/cp/constexpr.c:4014
0x6f92d2 cxx_eval_call_expression
../../src/gcc/cp/constexpr.c:1494
0x6fab6f cxx_eval_constant_expression
../../src/gcc/cp/constexpr.c:3556
0x6fd1f6 cxx_eval_outermost_constant_expr
../../src/gcc/cp/constexpr.c:4121
0x6fec81 maybe_constant_init(tree_node*, tree_node*)
../../src/gcc/cp/constexpr.c:4439
0x69b07e build_vec_init(tree_node*, tree_node*, tree_node*, bool, int, int)
../../src/gcc/cp/init.c:4176
0x6eb43d cp_gimplify_expr(tree_node**, gimple**, gimple**)
../../src/gcc/cp/cp-gimplify.c:591
0x8d62b5 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../src/gcc/gimplify.c:10196
0x8d9cb6 gimplify_stmt(tree_node**, gimple**)
../../src/gcc/gimplify.c:5688
0x8d6aa8 gimplify_cleanup_point_expr
../../src/gcc/gimplify.c:5464
0x8d6aa8 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../src/gcc/gimplify.c:10652
0x8d9cb6 gimplify_stmt(tree_node**, gimple**)
../../src/gcc/gimplify.c:5688
More information about the Gcc-bugs
mailing list