public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug translation/55392] New: Internal compiler error in get_expr_operands, c++11 without optimization
@ 2012-11-19 10:46 david at aitellu dot com
  2012-11-19 11:58 ` [Bug c++/55392] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: david at aitellu dot com @ 2012-11-19 10:46 UTC (permalink / raw)
  To: gcc-bugs


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():
 <field_decl 0x7f16a8f322f8 __this
    type <pointer_type 0x7f16a939f738
        type <record_type 0x7f16a97731f8 TightTree sizes-gimplified asm_written
needs-constructing type_1 type_5 type_6 BLK
            size <integer_cst 0x7f16add73ba0 constant 512>
            unit size <integer_cst 0x7f16add73800 constant 64>
            align 64 symtab -1455709008 alias set -1 canonical type
0x7f16a97731f8 fields <field_decl 0x7f16a93a1ab0 D.111478> context
<translation_unit_decl 0x7f16ae144170 D.1>
            full-name "class TightTree<unsigned char, int, 8u, 1000000ul,
TightVector<unsigned int, 1000000ul> >"
            needs-constructor X(constX&) this=(X&) n_parents=1 use_template=1
interface-unknown
            pointer_to_this <pointer_type 0x7f16a939f5e8> reference_to_this
<reference_type 0x7f16a93be9d8> chain <type_decl 0x7f16a976b228 TightTree>>
        readonly sizes-gimplified unsigned DI
        size <integer_cst 0x7f16ae12bdc0 constant 64>
        unit size <integer_cst 0x7f16ae12bde0 constant 8>
        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 <integer_cst 0x7f16ae12bdc0 64> unit size <integer_cst 0x7f16ae12bde0 8>
    align 64 offset_align 128
    offset <integer_cst 0x7f16ae12be00 type <integer_type 0x7f16ae146000
sizetype> constant 0>
    bit offset <integer_cst 0x7f16ae12be80 type <integer_type 0x7f16ae1460a8
bitsizetype> constant 0> context <record_type 0x7f16a8f312a0 __lambda0> chain
<type_decl 0x7f16a8f307e8 __lambda0>>

/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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-19 14:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-19 10:46 [Bug translation/55392] New: Internal compiler error in get_expr_operands, c++11 without optimization david at aitellu dot com
2012-11-19 11:58 ` [Bug c++/55392] " redi at gcc dot gnu.org
2012-11-19 12:20 ` david at aitellu dot com
2012-11-19 12:52 ` markus at trippelsdorf dot de
2012-11-19 13:30 ` redi at gcc dot gnu.org
2012-11-19 14:59 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).