[Bug c++/66383] New: ICE in gimplify_expr on this passed in inline initialization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66383 Bug ID: 66383 Summary: ICE in gimplify_expr on this passed in inline initialization Product: gcc Version: 5.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: alltaken380 at gmail dot com Target Milestone: --- Created attachment 35679 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35679&action=edit C++ source code (stripped down, just few lines of simple code) $ g++ -std=c++14 ./test.cpp ./test.cpp: In function 'auto foo()': ./test.cpp:22:24: internal compiler error: in gimplify_expr, at gimplify.c:8785 auto b = B{}; ^ 0x92987c gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int) ../../src/gcc/gimplify.c:8785 0x928038 gimplify_addr_expr ../../src/gcc/gimplify.c:4978 0x928038 gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int) ../../src/gcc/gimplify.c:8099 0x92d3d0 gimplify_call_expr ../../src/gcc/gimplify.c:2476 0x929117 gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int) ../../src/gcc/gimplify.c:8024 0x92a626 gimplify_stmt(tree_node**, gimple_statement_base**) ../../src/gcc/gimplify.c:5518 0x92772b gimplify_cleanup_point_expr ../../src/gcc/gimplify.c:5294 0x92772b gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int) ../../src/gcc/gimplify.c:8416 0x92a626 gimplify_stmt(tree_node**, gimple_statement_base**) ../../src/gcc/gimplify.c:5518 0x928b4b gimplify_statement_list ../../src/gcc/gimplify.c:1487 0x928b4b gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int) ../../src/gcc/gimplify.c:8468 0x92a626 gimplify_stmt(tree_node**, gimple_statement_base**) ../../src/gcc/gimplify.c:5518 0x92ae2d gimplify_bind_expr ../../src/gcc/gimplify.c:1136 0x9290f9 gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int) ../../src/gcc/gimplify.c:8250 0x92a626 gimplify_stmt(tree_node**, gimple_statement_base**) ../../src/gcc/gimplify.c:5518 0x92b4d1 gimplify_body(tree_node*, bool) ../../src/gcc/gimplify.c:9187 0x92b7f7 gimplify_function_tree(tree_node*) ../../src/gcc/gimplify.c:9341 0x7e22a7 cgraph_node::analyze() ../../src/gcc/cgraphunit.c:633 0x7e475f analyze_functions ../../src/gcc/cgraphunit.c:1023 0x7e4c95 symbol_table::finalize_compilation_unit() ../../src/gcc/cgraphunit.c:2452 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.
[Bug c++/66383] ICE in gimplify_expr on this passed in inline initialization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66383 alltaken380 at gmail dot com changed: What|Removed |Added Attachment #35679|0 |1 is obsolete|| --- Comment #1 from alltaken380 at gmail dot com --- Created attachment 35680 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35680&action=edit Preprocessed source code
[Bug c++/66383] ICE in gimplify_expr on this passed in inline initialization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66383 --- Comment #2 from alltaken380 at gmail dot com --- $ ~/.local/gcc-5.1/bin/g++ -v Using built-in specs. COLLECT_GCC=/home/rafalw/.local/gcc-5.1/bin/g++ COLLECT_LTO_WRAPPER=/home/rafalw/.local/gcc-5.1/lib/gcc/x86_64-unknown-linux-gnu/5.1.1/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../src/configure --prefix=/home/rafalw/.local/gcc-5.1 --libdir=/home/rafalw/.local/gcc-5.1/lib --libexecdir=/home/rafalw/.local/gcc-5.1/lib --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-libmpx --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --with-default-libstdcxx-abi=c++98 Thread model: posix gcc version 5.1.1 20150526 (GCC)
[Bug c++/67054] New: Constructor inheritance with non-default constructible members
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67054 Bug ID: 67054 Summary: Constructor inheritance with non-default constructible members Product: gcc Version: 5.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: alltaken380 at gmail dot com Target Milestone: --- Created attachment 36086 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36086&action=edit Preprocessed source code Following code won't compile: struct NonDefault { NonDefault(int) {} }; struct Base { Base(int) {} }; struct Derived : public Base { NonDefault foo = 4; using Base::Base; }; auto test() { auto d = Derived{ 5 }; } $ g++ -std=c++14 -c test.cpp test.cpp: In function ‘auto test()’: test.cpp:20:25: error: use of deleted function ‘Derived::Derived(int)’ auto d = Derived{ 5 }; ^ test.cpp:15:17: note: ‘Derived::Derived(int)’ is implicitly deleted because the default definition would be ill-formed: using Base::Base; ^ test.cpp:15:17: error: no matching function for call to ‘NonDefault::NonDefault()’ test.cpp:3:5: note: candidate: NonDefault::NonDefault(int) NonDefault(int) {} ^ test.cpp:3:5: note: candidate expects 1 argument, 0 provided test.cpp:1:8: note: candidate: constexpr NonDefault::NonDefault(const NonDefault&) struct NonDefault ^ test.cpp:1:8: note: candidate expects 1 argument, 0 provided test.cpp:1:8: note: candidate: constexpr NonDefault::NonDefault(NonDefault&&) test.cpp:1:8: note: candidate expects 1 argument, 0 provided $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /build/gcc-multilib/src/gcc-5.2.0/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --with-default-libstdcxx-abi=gcc4-compatible Thread model: posix gcc version 5.2.0 (GCC)