https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67354 Markus Trippelsdorf changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-08-26 CC| |trippels at gcc dot gnu.org Summary|internal compiler error: in |[5/6 regression] internal |add_to_same_comdat_group, |compiler error: in |at symtab.c:421 |add_to_same_comdat_group, | |at symtab.c:421 Ever confirmed|0 |1 --- Comment #1 from Markus Trippelsdorf --- markus@x4 tmp % cat gccbug.ii class A { }; template void make_shared () { _Tp (); } class B : virtual A { public: template B () {} }; auto f = make_shared; markus@x4 tmp % g++ -c -Os -std=gnu++11 gccbug.ii gccbug.ii: In instantiation of ‘B::B() [with = {}]’: gccbug.ii:8:3: required from ‘void make_shared() [with _Tp = B]’ gccbug.ii:16:10: required from here gccbug.ii:14:32: internal compiler error: in add_to_same_comdat_group, at symtab.c:402 template B () {} ^ 0x8ea7b8 symtab_node::add_to_same_comdat_group(symtab_node*) ../../gcc/gcc/symtab.c:402 0x798fb7 maybe_thunk_body ../../gcc/gcc/cp/optimize.c:286 0x799dc4 maybe_clone_body(tree_node*) ../../gcc/gcc/cp/optimize.c:508 0x7696b3 expand_or_defer_fn_1(tree_node*) ../../gcc/gcc/cp/semantics.c:4101 0x7698e8 expand_or_defer_fn(tree_node*) ../../gcc/gcc/cp/semantics.c:4124 0x632be6 instantiate_decl(tree_node*, int, bool) ../../gcc/gcc/cp/pt.c:21181 0x677cc9 instantiate_pending_templates(int) ../../gcc/gcc/cp/pt.c:21275 0x6b9ea4 c_parse_final_cleanups() ../../gcc/gcc/cp/decl2.c:4534 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. >From gcc-bugs-return-495653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 26 06:40:38 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71665 invoked by alias); 26 Aug 2015 06:40:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 71627 invoked by uid 48); 26 Aug 2015 06:40:33 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/67355] New: [5 Regression] ICE compiling LTP testcase Date: Wed, 26 Aug 2015 06:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 5.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg01795.txt.bz2 Content-length: 3616 https://gcc.gnu.org/bugzilla/show_bug.cgi?idg355 Bug ID: 67355 Summary: [5 Regression] ICE compiling LTP testcase Product: gcc Version: 5.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- Created attachment 36256 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id6256&actioníit testcase > gcc-5 -S -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables atof01.c -m32 -g -B /abuild/rguenther/gcc5-g/gcc -v Reading specs from /abuild/rguenther/gcc5-g/gcc/specs COLLECT_GCC=gcc-5 Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada,go --enable-checking=release --with-gxx-include-dir=/usr/include/c++/5 --enable-ssp --disable-libssp --disable-libvtv --enable-libmpx --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --with-default-libstdcxx-abi=gcc4-compatible --enable-version-specific-runtime-libs --enable-linker-build-id --enable-linux-futex --program-suffix=-5 --without-system-libunwind --enable-multilib --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux Thread model: posix gcc version 5.1.1 20150707 [gcc-5-branch revision 225501] (SUSE Linux) COLLECT_GCC_OPTIONS='-S' '-O2' '-D' '_FORTIFY_SOURCE=2' '-fstack-protector' '-funwind-tables' '-fasynchronous-unwind-tables' '-m32' '-g' '-B' '/abuild/rguenther/gcc5-g/gcc' '-v' '-mtune=generic' '-march=i586' /abuild/rguenther/gcc5-g/gcc/cc1 -quiet -v -imultilib 32 -isystem /abuild/rguenther/gcc5-g/gcc/include -isystem /abuild/rguenther/gcc5-g/gcc/include-fixed -D _FORTIFY_SOURCE=2 atof01.c -quiet -dumpbase atof01.c -m32 -mtune=generic -march=i586 -auxbase atof01 -g -O2 -version -fstack-protector -funwind-tables -fasynchronous-unwind-tables -o atof01.s GNU C11 (GCC) version 5.2.1 20150826 [gcc-5-branch revision 226027] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.8.4 20150327 [gcc-4_8-branch revision 221722], GMP version 6.0.0, MPFR version 3.1.2, MPC version 1.0.2 GGC heuristics: --param ggc-min-expand0 --param ggc-min-heapsize@96 ignoring nonexistent directory "/usr/local/lib64/gcc/x86_64-unknown-linux-gnu/5.2.1/include" ignoring nonexistent directory "/usr/local/lib64/gcc/x86_64-unknown-linux-gnu/5.2.1/include-fixed" ignoring nonexistent directory "/usr/local/lib64/../x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /abuild/rguenther/gcc5-g/gcc/include /abuild/rguenther/gcc5-g/gcc/include-fixed /usr/local/include /usr/include End of search list. GNU C11 (GCC) version 5.2.1 20150826 [gcc-5-branch revision 226027] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.8.4 20150327 [gcc-4_8-branch revision 221722], GMP version 6.0.0, MPFR version 3.1.2, MPC version 1.0.2 GGC heuristics: --param ggc-min-expand0 --param ggc-min-heapsize@96 Compiler executable checksum: eb89c9d8d76c5ea91abc0b0f9363b11c gcc-5: internal compiler error: Segmentation fault (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See for instructions.