This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11295] [3.4/3.5 regression] ICE in cp_expr_size, at cp/cp-lang.c:314 when using a non-trivial object in a compound statement expression
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Feb 2004 02:43:46 -0000
- Subject: [Bug c++/11295] [3.4/3.5 regression] ICE in cp_expr_size, at cp/cp-lang.c:314 when using a non-trivial object in a compound statement expression
- References: <20030623155039.11295.jfc@legra.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-06 02:43 -------
I can reproduce it on a cross to ia64-suse-linux-gnu.
Here is the backtrace:
#0 fancy_abort (file=0x701120 "../../gcc/cp/cp-lang.c", line=347, function=0x70118c
"cp_expr_size") at ../../gcc/diagnostic.c:584
#1 0x001d63ec in cp_expr_size (exp=0x88ad70) at ../../gcc/cp/cp-lang.c:347
#2 0x003a1880 in expr_size (exp=0x88ad70) at ../../gcc/explow.c:243
#3 0x003b1d08 in store_expr (exp=0x88ad70, target=0x866d74, want_value=0) at ../../gcc/
expr.c:4228
#4 0x003db294 in expand_expr_real (exp=0x8881a0, target=0x866d74, tmode=VOIDmode,
modifier=EXPAND_CONST_ADDRESS, alt_rtl=0x0) at ../../gcc/expr.c:8621
#5 0x003dcb70 in expand_expr_real (exp=0x88ad84, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL, alt_rtl=0x0) at ../../gcc/expr.c:8736
#6 0x003ca1c0 in expand_expr_real (exp=0x88ade8, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL, alt_rtl=0x0) at ../../gcc/expr.c:7519
#7 0x003ca1c0 in expand_expr_real (exp=0x88adfc, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL, alt_rtl=0x0) at ../../gcc/expr.c:7519
#8 0x00486a9c in precompute_arguments (flags=0, num_actuals=1, args=0xbfffde70) at ../../
gcc/calls.c:1404
#9 0x0048a080 in expand_call (exp=0x411d2c48, target=0x0, ignore=1) at ../../gcc/calls.c:2737
#10 0x003c9410 in expand_expr_real (exp=0x411d2c48, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL, alt_rtl=0x0) at ../../gcc/expr.c:7461
#11 0x003b0760 in store_expr (exp=0x411d2cf0, target=0x866d38, want_value=0) at ../../gcc/
expr.c:4022
#12 0x003db294 in expand_expr_real (exp=0x8882a0, target=0x866d38, tmode=VOIDmode,
modifier=EXPAND_NORMAL, alt_rtl=0x0) at ../../gcc/expr.c:8621
#13 0x003be19c in expand_expr_real (exp=0x88dba4, target=0x411c6300, tmode=VOIDmode,
modifier=EXPAND_NORMAL, alt_rtl=0xbffff108) at ../../gcc/expr.c:6246
#14 0x0045a88c in expand_expr_stmt_value (exp=0x88dba4, want_value=0, maybe_last=0) at ../
../gcc/stmt.c:2168
#15 0x00237540 in genrtl_expr_stmt_value (expr=0x88dba4, want_value=0, maybe_last=0) at ../
../gcc/c-semantics.c:355
#16 0x0023afe8 in expand_stmt (t=0x88dbb8) at ../../gcc/c-semantics.c:799
#17 0x0023a5b4 in genrtl_compound_stmt (t=0x86d0dc) at ../../gcc/c-semantics.c:719
#18 0x0023b030 in expand_stmt (t=0x86d0dc) at ../../gcc/c-semantics.c:826
#19 0x0023a5b4 in genrtl_compound_stmt (t=0x86d0a0) at ../../gcc/c-semantics.c:719
#20 0x0023b030 in expand_stmt (t=0x86d0a0) at ../../gcc/c-semantics.c:826
#21 0x00497f98 in tree_rest_of_compilation (fndecl=0x86c89c, nested_p=false) at ../../gcc/tree-
optimize.c:144
#22 0x001ac748 in expand_body (fn=0x86c89c) at ../../gcc/cp/semantics.c:2901
#23 0x0047e140 in cgraph_expand_function (node=0x8a00e8) at ../../gcc/cgraphunit.c:534
#24 0x0047cbfc in cgraph_assemble_pending_functions () at ../../gcc/cgraphunit.c:143
#25 0x0047ce14 in cgraph_finalize_function (decl=0x86c89c, nested=false) at ../../gcc/
cgraphunit.c:224
#26 0x001accbc in expand_or_defer_fn (fn=0x86c89c) at ../../gcc/cp/semantics.c:2984
#27 0x0013cc94 in cp_parser_function_definition_after_declarator (parser=0x413bc1d0,
inline_p=false) at ../../gcc/cp/parser.c:14231
#28 0x0013cb00 in cp_parser_function_definition_from_specifiers_and_declarator
(parser=0x413bc1d0, decl_specifiers=0x86d050, attributes=0x0, declarator=0x411d2738) at ../
../gcc/cp/parser.c:14169
#29 0x00133dac in cp_parser_init_declarator (parser=0x413bc1d0, decl_specifiers=0x86d050,
prefix_attributes=0x0, function_definition_allowed_p=true, member_p=false,
declares_class_or_enum=0, function_definition_p=0xbffff834) at ../../gcc/cp/parser.c:9978
#30 0x0012e690 in cp_parser_simple_declaration (parser=0x413bc1d0,
function_definition_allowed_p=true) at ../../gcc/cp/parser.c:6538
#31 0x0012e588 in cp_parser_block_declaration (parser=0x413bc1d0, statement_p=false) at ../../
gcc/cp/parser.c:6454
#32 0x0012e3f0 in cp_parser_declaration (parser=0x413bc1d0) at ../../gcc/cp/parser.c:6374
#33 0x0012e168 in cp_parser_declaration_seq_opt (parser=0x413bc1d0) at ../../gcc/cp/parser.c:
6283
#34 0x0012815c in cp_parser_translation_unit (parser=0x413bc1d0) at ../../gcc/cp/parser.c:2383
#35 0x0013f87c in c_parse_file () at ../../gcc/cp/parser.c:15273
#36 0x00252208 in c_common_parse_file (set_yydebug=0) at ../../gcc/c-opts.c:1235
#37 0x00299dbc in compile_file () at ../../gcc/toplev.c:1813
#38 0x002a0a28 in do_compile () at ../../gcc/toplev.c:4642
#39 0x002a0b0c in toplev_main (argc=2, argv=0xbffffcb4) at ../../gcc/toplev.c:4682
#40 0x00258488 in main (argc=2, argv=0xbffffcb4) at ../../gcc/main.c:35
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-07-30 04:28:37 |2004-02-06 02:43:44
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11295