This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/18672] [4.0 Regression] Segfault with simple template code


------- Additional Comments From giovannibajo at libero dot it  2004-11-25 13:47 -------
Program received signal SIGSEGV, Segmentation fault.
0x081c56d9 in gimplify_expr (expr_p=0xf6f81884, pre_p=0xfef06504,
    post_p=0xfef06430, gimple_test_f=0x81bfc50 <is_gimple_val>,
    fallback=fb_rvalue) at ../../gcc/gcc/gimplify.c:1377
1377      if (TREE_CODE (TYPE_SIZE_UNIT (dctype)) != INTEGER_CST



Backtrace:

#0  0x081c56d9 in gimplify_expr (expr_p=0xf6f81884, pre_p=0xfef06504,
    post_p=0xfef06430, gimple_test_f=0x81bfc50 <is_gimple_val>,
    fallback=fb_rvalue) at ../../gcc/gcc/gimplify.c:1377
#1  0x081c80e3 in gimplify_arg (expr_p=0xf6f81884, pre_p=0xfef06504)
    at ../../gcc/gcc/gimplify.c:1740
#2  0x081c4795 in gimplify_expr (expr_p=0xfef06598, pre_p=0xfef06504,
    post_p=0xfef06500, gimple_test_f=0x81bf9d0 <is_gimple_stmt>,
    fallback=fb_none) at ../../gcc/gcc/gimplify.c:1806
#3  0x081c8f2a in gimplify_stmt (stmt_p=0x0) at ../../gcc/gcc/gimplify.c:3445
#4  0x081c97b7 in gimplify_to_stmt_list (stmt_p=0xfef06598)
    at ../../gcc/gcc/gimplify.c:3453
#5  0x081c370e in gimplify_cleanup_point_expr (expr_p=0xf6ef0ef0,
    pre_p=0xfef06634) at ../../gcc/gcc/gimplify.c:3266
#6  0x081c4455 in gimplify_expr (expr_p=0xf6ef0ef0, pre_p=0xfef06634,
    post_p=0xfef06630, gimple_test_f=0x81bf9d0 <is_gimple_stmt>,
    fallback=fb_none) at ../../gcc/gcc/gimplify.c:3799
#7  0x081c8f2a in gimplify_stmt (stmt_p=0x0) at ../../gcc/gcc/gimplify.c:3445
#8  0x081c44d1 in gimplify_expr (expr_p=0xf6f7e110, pre_p=0xfef066f4,
    post_p=0xfef066f0, gimple_test_f=0x81bf9d0 <is_gimple_stmt>,
    fallback=fb_none) at ../../gcc/gcc/gimplify.c:2978
#9  0x081c8f2a in gimplify_stmt (stmt_p=0x0) at ../../gcc/gcc/gimplify.c:3445
#10 0x081c97b7 in gimplify_to_stmt_list (stmt_p=0xf6f7e110)
    at ../../gcc/gcc/gimplify.c:3453
#11 0x081c98de in gimplify_bind_expr (expr_p=0xf6f7e138, temp=Variable "temp" 
is not available.
)
    at ../../gcc/gcc/gimplify.c:864
#12 0x081c47b1 in gimplify_expr (expr_p=0xf6f7e138, pre_p=0xfef06824,
    post_p=0xfef06820, gimple_test_f=0x81bf9d0 <is_gimple_stmt>,
    fallback=fb_none) at ../../gcc/gcc/gimplify.c:3695
#13 0x081c8f2a in gimplify_stmt (stmt_p=0x0) at ../../gcc/gcc/gimplify.c:3445
#14 0x081c97b7 in gimplify_to_stmt_list (stmt_p=0xf6f7e138)
    at ../../gcc/gcc/gimplify.c:3453
#15 0x081c98de in gimplify_bind_expr (expr_p=0xf6f80144, temp=Variable "temp" 
is not available.
)
    at ../../gcc/gcc/gimplify.c:864
#16 0x081c47b1 in gimplify_expr (expr_p=0xf6f80144, pre_p=0xfef06954,
    post_p=0xfef06950, gimple_test_f=0x81bf9d0 <is_gimple_stmt>,
    fallback=fb_none) at ../../gcc/gcc/gimplify.c:3695
#17 0x081c8f2a in gimplify_stmt (stmt_p=0x0) at ../../gcc/gcc/gimplify.c:3445
#18 0x081c8f9d in gimplify_body (body_p=0xf6f80144, fndecl=0xf6f800e8)
    at ../../gcc/gcc/gimplify.c:4266
#19 0x081c91ff in gimplify_function_tree (fndecl=0xf6f800e8)
    at ../../gcc/gcc/gimplify.c:4313
#20 0x08193cfc in c_genericize (fndecl=0xf6f800e8)
    at ../../gcc/gcc/c-gimplify.c:136
#21 0x08074a27 in finish_function (flags=2) at ../../gcc/gcc/cp/decl.c:10677
#22 0x080ed418 in cp_parser_function_definition_after_declarator (
    parser=0xf6f7fac4, inline_p=1 '\001') at ../../gcc/gcc/cp/parser.c:14692
#23 0x080ed6c6 in cp_parser_late_parsing_for_member (parser=0xf6f7fac4,
    member_function=0xf6f800e8) at ../../gcc/gcc/cp/parser.c:15124
#24 0x080ee370 in cp_parser_type_specifier (parser=0xf6f7fac4, 
flags=Variable "flags" is not available.
)
    at ../../gcc/gcc/cp/parser.c:12376
#25 0x080ef1b2 in cp_parser_decl_specifier_seq (parser=0xf6f7fac4,
    flags=CP_PARSER_FLAGS_OPTIONAL, decl_specs=0xfef06bd8,
    declares_class_or_enum=0xfef06c24) at ../../gcc/gcc/cp/parser.c:7152
#26 0x080f9962 in cp_parser_simple_declaration (parser=0xf6f7fac4,
    function_definition_allowed_p=1 '\001') at ../../gcc/gcc/cp/parser.c:6847
#27 0x080eb74a in cp_parser_block_declaration (parser=0xf6f7fac4,
    statement_p=0 '\0') at ../../gcc/gcc/cp/parser.c:6808
#28 0x080fbb94 in cp_parser_declaration (parser=0xf6f7fac4)
    at ../../gcc/gcc/cp/parser.c:6725
#29 0x080fc025 in cp_parser_declaration_seq_opt (parser=0xf6f7fac4)
    at ../../gcc/gcc/cp/parser.c:6629
#30 0x080fc368 in c_parse_file () at ../../gcc/gcc/cp/parser.c:2555
#31 0x0818fb85 in c_common_parse_file (set_yydebug=0)
    at ../../gcc/gcc/c-opts.c:1095
#32 0x0848c5b5 in toplev_main (argc=0, argv=0xfef06e04)
    at ../../gcc/gcc/toplev.c:985
#33 0x00bf3e33 in __libc_start_main () from /lib/tls/libc.so.6
#34 0x08049bd1 in _start ()


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18672


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]