This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15057] [3.4 Regression] Compiling of conditional value throw constructs cause a segmentation violation
- 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: 23 Apr 2004 22:27:54 -0000
- Subject: [Bug c++/15057] [3.4 Regression] Compiling of conditional value throw constructs cause a segmentation violation
- References: <20040421204752.15057.christian.groove@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-23 22:27 -------
I think I miss understood you when you said it seg faulted, I thought the resulting program was
segfaulting and not GCC.
Confirmed in 3.4.0.
Was not broken in 3.3.3, already fixed in 3.5.0.
Here is the backtrace:
539 if (TYPE_P (exp))
(gdb) bt
#0 wrap_cleanups_r (tp=0x808f30e, walk_subtrees=0x808f30e, data=0x0) at ../../gcc/cp/except.c:
539
#1 0x08303092 in walk_tree (tp=0x808f30e, func=0x80aaa90 <wrap_cleanups_r>, data=0x0,
htab_=0x84b64f0)
at ../../gcc/tree-inline.c:1748
#2 0x08303166 in walk_tree (tp=0xbffeb94c, func=0x80aaa90 <wrap_cleanups_r>, data=0x0,
htab_=0x84b64f0)
at ../../gcc/tree-inline.c:1796
#3 0x08303166 in walk_tree (tp=0xbffeb928, func=0x80aaa90 <wrap_cleanups_r>, data=0x0,
htab_=0x84b64f0)
at ../../gcc/tree-inline.c:1796
#4 0x083035cb in walk_tree_without_duplicates (tp=0x808f30e, func=0x808f30e
<cp_lexer_next_token_is_keyword+30>,
data=0x808f30e) at ../../gcc/tree-inline.c:1955
#5 0x080ab1ac in build_throw (exp=0x4019c648) at ../../gcc/cp/except.c:704
#6 0x0809110e in cp_parser_assignment_expression (parser=0x40128580) at ../../gcc/cp/parser.c:
13141
#7 0x08091857 in cp_parser_expression (parser=0x40128580) at ../../gcc/cp/parser.c:5289
#8 0x080919da in cp_parser_expression_statement (parser=0x40128580, in_statement_expr_p=false)
at ../../gcc/cp/parser.c:5593
#9 0x08095477 in cp_parser_statement (parser=0x40128580, in_statement_expr_p=false) at ../../
gcc/cp/parser.c:5477
#10 0x08095a9b in cp_parser_compound_statement (parser=0x40128580) at ../../gcc/cp/parser.c:
5658
#11 0x08099ad9 in cp_parser_implicitly_scoped_statement (parser=0x40128580) at ../../gcc/cp/
parser.c:6150
#12 0x08095950 in cp_parser_statement (parser=0x40128580, in_statement_expr_p=false) at ../../
gcc/cp/parser.c:5730
#13 0x08095a9b in cp_parser_compound_statement (parser=0x40128580) at ../../gcc/cp/parser.c:
5658
#14 0x0809927e in cp_parser_ctor_initializer_opt_and_function_body (parser=0x40128580) at ../../
gcc/cp/parser.c:11339
#15 0x0809950f in cp_parser_function_definition_after_declarator (parser=0x40128580,
inline_p=false)
at ../../gcc/cp/parser.c:14206
#16 0x0809991d in cp_parser_init_declarator (parser=0x40128580, decl_specifiers=0x4019f9d8,
prefix_attributes=0x0,
function_definition_allowed_p=true, member_p=false, declares_class_or_enum=0,
function_definition_p=0xbffebb47)
at ../../gcc/cp/parser.c:14151
#17 0x08094e02 in cp_parser_simple_declaration (parser=0x40128580,
function_definition_allowed_p=true)
at ../../gcc/cp/parser.c:6481
#18 0x08094f68 in cp_parser_block_declaration (parser=0x40128580, statement_p=false) at ../../gcc/
cp/parser.c:6397
#19 0x0809a2df in cp_parser_declaration (parser=0x40128580) at ../../gcc/cp/parser.c:6317
#20 0x0809a55f in cp_parser_declaration_seq_opt (parser=0x40128580) at ../../gcc/cp/parser.c:6226
#21 0x0809a72b in c_parse_file () at ../../gcc/cp/parser.c:2319
#22 0x080ec0e2 in c_common_parse_file (set_yydebug=134804238) at ../../gcc/c-opts.c:1237
#23 0x082cc21d in toplev_main (argc=134804238, argv=0xbffebfae) at ../../gcc/toplev.c:1822
#24 0x080ef8de in main (argc=134804238, argv=0x808f30e) at ../../gcc/main.c:35
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Keywords| |ice-on-valid-code
Known to fail| |3.4.0
Known to work| |3.5.0 3.3.3
Summary|Compiling of conditional |[3.4 Regression] Compiling
|value throw constructs cause|of conditional value throw
|a segmentation violation |constructs cause a
| |segmentation violation
Target Milestone|--- |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15057