This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15329] [3.4/3.5 Regression] ICE on constructor of member template
- 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 May 2004 18:48:12 -0000
- Subject: [Bug c++/15329] [3.4/3.5 Regression] ICE on constructor of member template
- References: <20040506183602.15329.rjpeters@klab.caltech.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-06 18:48 -------
Confirmed.
Here is the backtrace:
#0 size_binop (code=TRUNC_DIV_EXPR, arg0=0x0, arg1=0x4004e8ac) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/fold-const.c:1641
#1 0x083b7e22 in byte_from_pos (offset=0x0, bitpos=0x0) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/stor-layout.c:632
#2 0x083c75c1 in byte_position (field=0x4012b4a4) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
tree.c:1194
#3 0x08101388 in build_unary_op (code=ADDR_EXPR, xarg=0x4005d0d8, noconvert=0) at /home/
gates/pinskia/src/gnu/gcc/src/gcc/cp/typeck.c:4097
#4 0x080d6f2f in build_offset_ref_call_from_tree (fn=0x4005d108, args=0x0) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/cp/decl2.c:2942
#5 0x080f0af2 in cp_parser_unary_expression (parser=0x4012ac40, address_p=false) at /home/
gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:3864
#6 0x080e7704 in cp_parser_binary_expression (parser=0x4012ac40, token_tree_map=0x849ee20,
fn=0x80f10e0 <cp_parser_simple_cast_expression>)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:13972
#7 0x080e7704 in cp_parser_binary_expression (parser=0x4012ac40, token_tree_map=0x849ee10,
fn=0x80e78d0 <cp_parser_pm_expression>)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:13972
#8 0x080e7704 in cp_parser_binary_expression (parser=0x4012ac40, token_tree_map=0x849ee04,
fn=0x80e78b0 <cp_parser_multiplicative_expression>)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:13972
#9 0x080e7704 in cp_parser_binary_expression (parser=0x4012ac40, token_tree_map=0x849edf8,
fn=0x80e7890 <cp_parser_additive_expression>)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:13972
#10 0x080e7704 in cp_parser_binary_expression (parser=0x4012ac40, token_tree_map=0x849eddc,
fn=0x80e7870 <cp_parser_shift_expression>)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:13972
#11 0x080e7704 in cp_parser_binary_expression (parser=0x4012ac40, token_tree_map=0x849edd0,
fn=0x80e7850 <cp_parser_relational_expression>)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:13972
#12 0x080e7704 in cp_parser_binary_expression (parser=0x4012ac40, token_tree_map=0x849edc8,
fn=0x80e7830 <cp_parser_equality_expression>)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:13972
#13 0x080e7704 in cp_parser_binary_expression (parser=0x4012ac40, token_tree_map=0x849edc0,
fn=0x80e7810 <cp_parser_and_expression>)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:13972
#14 0x080e7704 in cp_parser_binary_expression (parser=0x4012ac40, token_tree_map=0x849edb8,
fn=0x80e77f0 <cp_parser_exclusive_or_expression>)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:13972
#15 0x080e7704 in cp_parser_binary_expression (parser=0x4012ac40, token_tree_map=0x849edb0,
fn=0x80e77d0 <cp_parser_inclusive_or_expression>)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:13972
#16 0x080e7704 in cp_parser_binary_expression (parser=0x4012ac40, token_tree_map=0x849efc4,
fn=0x80e77b0 <cp_parser_logical_and_expression>)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:13972
#17 0x080e8703 in cp_parser_assignment_expression (parser=0x4012ac40) at /home/gates/pinskia/
src/gnu/gcc/src/gcc/cp/parser.c:5151
#18 0x080e8ec7 in cp_parser_expression (parser=0x4012ac40) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/cp/parser.c:5366
#19 0x080e904c in cp_parser_expression_statement (parser=0x4012ac40, in_statement_expr_p=false)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:5670
#20 0x080ec90a in cp_parser_statement (parser=0x4012ac40, in_statement_expr_p=false) at /home/
gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:5554
#21 0x080ecf6b in cp_parser_compound_statement (parser=0x4012ac40, in_statement_expr_p=false)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:5735
#22 0x080f1812 in cp_parser_ctor_initializer_opt_and_function_body (parser=0x4012ac40) at /home/
gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:11431
#23 0x080f1948 in cp_parser_function_definition_after_declarator (parser=0x4012ac40, inline_p=true)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:14300
#24 0x080eaa78 in cp_parser_type_specifier (parser=0x4012ac40, flags=Variable "flags" is not
available.
) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:14702
#25 0x080eb44e in cp_parser_decl_specifier_seq (parser=0x4012ac40,
flags=CP_PARSER_FLAGS_OPTIONAL, attributes=0xbffec2b8, declares_class_or_enum=0xbffec2bc)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:6799
#26 0x080f1f42 in cp_parser_simple_declaration (parser=0x4012ac40,
function_definition_allowed_p=true) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:6525
#27 0x080f2118 in cp_parser_block_declaration (parser=0x4012ac40, statement_p=false) at /home/
gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:6485
#28 0x080f2cde in cp_parser_declaration (parser=0x4012ac40) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/cp/parser.c:6405
#29 0x080f2faf in cp_parser_declaration_seq_opt (parser=0x4012ac40) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/cp/parser.c:6303
#30 0x080f319e in c_parse_file () at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:2393
#31 0x0818183b in c_common_parse_file (set_yydebug=0) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/c-opts.c:1244
#32 0x083c081e in toplev_main (argc=0, argv=0xbffec494) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/toplev.c:1596
#33 0x0818540e in main (argc=0, argv=0x0) at /home/gates/pinskia/src/gnu/gcc/src/gcc/main.c:35
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Known to fail| |3.4.0 3.5.0
Known to work| |3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2004-05-06 18:48:11
date| |
Summary|ICE on constructor of member|[3.4/3.5 Regression] ICE on
|template |constructor of member
| |template
Target Milestone|--- |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15329