From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2011 invoked by alias); 19 Nov 2012 10:46:49 -0000 Received: (qmail 1617 invoked by uid 48); 19 Nov 2012 10:46:27 -0000 From: "david at aitellu dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug translation/55392] New: Internal compiler error in get_expr_operands, c++11 without optimization Date: Mon, 19 Nov 2012 10:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: translation X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: david at aitellu dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-11/txt/msg01737.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55392 Bug #: 55392 Summary: Internal compiler error in get_expr_operands, c++11 without optimization Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: translation AssignedTo: unassigned@gcc.gnu.org ReportedBy: david@aitellu.com I have tried compiling this code both with gcc 4.7.2 and the gcc-snapshot of 4.8 from Ubuntu (gcc version 4.8.0 20121008 (experimental) [trunk revision 192192]) and it crashes in both cases. My command line is simply: g++ -Wall -g -O0 -std=c++11 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: be9316d4d24873f9eb2c1149d4699d98 unhandled expression in get_expr_operands(): unit size align 64 symtab -1455709008 alias set -1 canonical type 0x7f16a97731f8 fields context full-name "class TightTree >" needs-constructor X(constX&) this=(X&) n_parents=1 use_template=1 interface-unknown pointer_to_this reference_to_this chain > readonly sizes-gimplified unsigned DI size unit size align 64 symtab -1460303440 alias set -1 canonical type 0x7f16a939f738> readonly used unsigned nonlocal decl_7 DI file /home/gurgeh/projs/hg/Turtle/src/TightStructures/tight_tree.hpp line 102 col 41 size unit size align 64 offset_align 128 offset constant 0> bit offset constant 0> context chain > /home/gurgeh/projs/hg/Turtle/src/TightStructures/test_ttree.cpp: In lambda function: /home/gurgeh/projs/hg/Turtle/src/TightStructures/test_ttree.cpp:62:92: internal compiler error: in get_expr_operands, at tree-ssa-operands.c:984 BOOST_AUTO_TEST_SUITE_END() The place where it crashes is inside a unit test, using the Boost unit test framework. clang 3.1 compiles the code fine. The last line of the output is, oddly, "The bug is not reproducible, so it is likely a hardware or OS problem." But I don't understand this. I can certainly reproduce it 100% of the times, with both 4.7 and 4.8.