This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37314] [4.2/4.3/4.4 Regression] seg violation
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Sep 2008 15:53:55 -0000
- Subject: [Bug c++/37314] [4.2/4.3/4.4 Regression] seg violation
- References: <bug-37314-16655@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from rguenth at gcc dot gnu dot org 2008-09-01 15:53 -------
Confirmed.
Program received signal SIGSEGV, Segmentation fault.
0x0000000000cd5495 in strip_array_types (type=0x0)
at /space/rguenther/src/svn/trunk/gcc/tree.c:5755
5755 while (TREE_CODE (type) == ARRAY_TYPE)
(gdb) up
#1 0x00000000005ad26d in cp_type_quals (type=0x0)
at /space/rguenther/src/svn/trunk/gcc/cp/typeck.c:7108
7108 type = strip_array_types (CONST_CAST_TREE(type));
(gdb)
#2 0x0000000000585fb8 in original_type (t=0x0)
at /space/rguenther/src/svn/trunk/gcc/cp/typeck.c:236
236 int quals = cp_type_quals (t);
(gdb)
#3 0x0000000000589136 in merge_types (t1=0x7fd7237a0900, t2=0x0)
at /space/rguenther/src/svn/trunk/gcc/cp/typeck.c:602
602 if (original_type (t1) == original_type (t2))
(gdb)
#4 0x00000000005895ee in merge_types (t1=0x7fd7237a0a80, t2=0x7fd723765a80)
at /space/rguenther/src/svn/trunk/gcc/cp/typeck.c:628
628 tree target = merge_types (TREE_TYPE (t1), TREE_TYPE (t2));
(gdb) call debug_tree (t1)
<reference_type 0x7fd7237a0a80
type <template_type_parm 0x7fd7237a0900 T VOID
align 8 symtab 0 alias set -1 canonical type 0x7fd7249b0f00
index 0 level 1 orig_level 1
reference_to_this <reference_type 0x7fd7237a0a80> chain <type_decl
0x7fd7237a09c0 T>>
unsigned DI
size <integer_cst 0x7fd7252fcb10 type <integer_type 0x7fd7253100c0
bit_size_type> constant 64>
unit size <integer_cst 0x7fd7252fcb40 type <integer_type 0x7fd725310000
long unsigned int> constant 8>
align 64 symtab 0 alias set -1 canonical type 0x7fd723fdf240>
(gdb) call debug_tree (t2)
<typename_type 0x7fd723765a80 reference type_0 type_6 VOID
align 8 symtab 0 alias set -1 structural equality context <record_type
0x7fd72375d9c0 Cdeque>
chain <type_decl 0x7fd723765b40 reference>>
#0 0x0000000000cd5495 in strip_array_types (type=0x0)
at /space/rguenther/src/svn/trunk/gcc/tree.c:5755
#1 0x00000000005ad26d in cp_type_quals (type=0x0)
at /space/rguenther/src/svn/trunk/gcc/cp/typeck.c:7108
#2 0x0000000000585fb8 in original_type (t=0x0)
at /space/rguenther/src/svn/trunk/gcc/cp/typeck.c:236
#3 0x0000000000589136 in merge_types (t1=0x7fd7237a0900, t2=0x0)
at /space/rguenther/src/svn/trunk/gcc/cp/typeck.c:602
#4 0x00000000005895ee in merge_types (t1=0x7fd7237a0a80, t2=0x7fd723765a80)
at /space/rguenther/src/svn/trunk/gcc/cp/typeck.c:628
#5 0x0000000000589d73 in merge_types (t1=0x7fd7237a0b40, t2=0x7fd72376c300)
at /space/rguenther/src/svn/trunk/gcc/cp/typeck.c:675
#6 0x000000000058a454 in merge_types (t1=0x7fd7237a0b40, t2=0x7fd72376c300)
at /space/rguenther/src/svn/trunk/gcc/cp/typeck.c:723
#7 0x000000000042f5ca in duplicate_decls (newdecl=0x7fd72377b400,
olddecl=0x7fd72376a500, newdecl_is_friend=0 '\0')
at /space/rguenther/src/svn/trunk/gcc/cp/decl.c:1703
#8 0x000000000044cb25 in grokfndecl (ctype=0x7fd7237650c0,
type=0x7fd7237a0cc0, declarator=0x7fd72530e780, parms=0x7fd72379e360,
orig_declarator=0x7fd72530e780, virtualp=0, flags=NO_SPECIAL, quals=0,
raises=0x0, check=1, friendp=0, publicp=1, inlinep=0, sfk=sfk_none,
funcdef_flag=1 '\001', template_count=1, in_namespace=0x0,
attrlist=0x7fff2d43db28)
at /space/rguenther/src/svn/trunk/gcc/cp/decl.c:6802
#9 0x00000000004568e2 in grokdeclarator (declarator=0x1746bf0,
declspecs=0x7fff2d43dd00, decl_context=NORMAL, initialized=1,
attrlist=0x7fff2d43db28)
at /space/rguenther/src/svn/trunk/gcc/cp/decl.c:9255
#10 0x000000000046900f in start_function (declspecs=0x7fff2d43dd00,
declarator=0x1746c70, attrs=0x0)
at /space/rguenther/src/svn/trunk/gcc/cp/decl.c:11698
#11 0x00000000005717a4 in
cp_parser_function_definition_from_specifiers_and_declarator
(parser=0x7fd724a137d0, decl_specifiers=0x7fff2d43dd00, attributes=0x0,
declarator=0x1746c70)
at /space/rguenther/src/svn/trunk/gcc/cp/parser.c:17336
#12 0x0000000000568b31 in cp_parser_init_declarator (parser=0x7fd724a137d0,
decl_specifiers=0x7fff2d43dd00, checks=0x0,
function_definition_allowed_p=1 '\001', member_p=0 '\0',
declares_class_or_enum=0, function_definition_p=0x7fff2d43dcff "\001")
at /space/rguenther/src/svn/trunk/gcc/cp/parser.c:12584
#13 0x00000000005721f8 in cp_parser_single_declaration (parser=0x7fd724a137d0,
checks=0x0, member_p=0 '\0', explicit_specialization_p=0 '\0',
friend_p=0x7fff2d43ddb7 "")
at /space/rguenther/src/svn/trunk/gcc/cp/parser.c:17682
#14 0x0000000000571b94 in cp_parser_template_declaration_after_export (
parser=0x7fd724a137d0, member_p=0 '\0')
---Type <return> to continue, or q <return> to quit---
at /space/rguenther/src/svn/trunk/gcc/cp/parser.c:17535
#15 0x000000000056434a in cp_parser_template_declaration (
parser=0x7fd724a137d0, member_p=0 '\0')
at /space/rguenther/src/svn/trunk/gcc/cp/parser.c:9488
#16 0x00000000005624fd in cp_parser_declaration (parser=0x7fd724a137d0)
at /space/rguenther/src/svn/trunk/gcc/cp/parser.c:7884
#17 0x0000000000562298 in cp_parser_declaration_seq_opt (parser=0x7fd724a137d0)
at /space/rguenther/src/svn/trunk/gcc/cp/parser.c:7815
#18 0x0000000000567fd9 in cp_parser_namespace_body (parser=0x7fd724a137d0)
at /space/rguenther/src/svn/trunk/gcc/cp/parser.c:12028
#19 0x0000000000567f9f in cp_parser_namespace_definition (
parser=0x7fd724a137d0)
at /space/rguenther/src/svn/trunk/gcc/cp/parser.c:12007
#20 0x00000000005625c5 in cp_parser_declaration (parser=0x7fd724a137d0)
at /space/rguenther/src/svn/trunk/gcc/cp/parser.c:7912
#21 0x0000000000562298 in cp_parser_declaration_seq_opt (parser=0x7fd724a137d0)
at /space/rguenther/src/svn/trunk/gcc/cp/parser.c:7815
#22 0x000000000055ada9 in cp_parser_translation_unit (parser=0x7fd724a137d0)
at /space/rguenther/src/svn/trunk/gcc/cp/parser.c:3031
#23 0x000000000057bdfd in c_parse_file ()
at /space/rguenther/src/svn/trunk/gcc/cp/parser.c:21886
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |blocker
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Known to fail| |4.1.2 4.2.0 4.2.4 4.3.2
| |4.4.0
Known to work| |4.0.4 4.1.1
Last reconfirmed|0000-00-00 00:00:00 |2008-09-01 15:53:55
date| |
Summary|seg violation |[4.2/4.3/4.4 Regression] seg
| |violation
Target Milestone|--- |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37314