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++/71515] ICE on valid C++ code on x86_64-linux-gnu: Segmentation fault (program cc1plus)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71515

Martin LiÅka <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-06-13
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin LiÅka <marxin at gcc dot gnu.org> ---
Confirmed on current trunk, 5.3.1 and 6.1.1 with following back-trace:

#152 0x00000000007bd9c8 in structural_comptypes (t1=0x7ffff69e8690,
t2=0x7ffff69e8e70, strict=<optimized out>) at ../../gcc/cp/typeck.c:1286
#153 0x0000000000735b87 in currently_open_class (t=t@entry=0x7ffff69e8e70) at
../../gcc/cp/class.c:7674
#154 0x00000000006f9938 in resolve_typename_type (type=0x7ffff69e8f18,
only_current_p=only_current_p@entry=true) at ../../gcc/cp/pt.c:23590
#155 0x00000000007bca62 in structural_comptypes (t1=0x7ffff69e8f18,
t2=0x7ffff69e8c78, strict=0) at ../../gcc/cp/typeck.c:1200
#156 0x00000000006be280 in template_args_equal (ot=ot@entry=0x7ffff69e8f18,
nt=nt@entry=0x7ffff69e8c78) at ../../gcc/cp/pt.c:7903
#157 0x00000000006bddb3 in comp_template_args (oldargs=0x7ffff69fb028,
newargs=newargs@entry=0x7ffff69dfde8, oldarg_ptr=oldarg_ptr@entry=0x0,
newarg_ptr=newarg_ptr@entry=0x0) at ../../gcc/cp/pt.c:7950
#158 0x00000000007bd9c8 in structural_comptypes (t1=0x7ffff69e8690,
t2=0x7ffff69e8d20, strict=<optimized out>) at ../../gcc/cp/typeck.c:1286
#159 0x0000000000735b87 in currently_open_class (t=t@entry=0x7ffff69e8d20) at
../../gcc/cp/class.c:7674
#160 0x00000000006f5f0b in lookup_template_class_1 (complain=3,
entering_scope=0, context=0x0, in_decl=0x0, arglist=0x7ffff69fb190,
d1=<optimized out>) at ../../gcc/cp/pt.c:8329
#161 lookup_template_class (d1=d1@entry=0x7ffff69fa000,
arglist=arglist@entry=0x7ffff69f79e0, in_decl=in_decl@entry=0x0,
context=context@entry=0x0, entering_scope=entering_scope@entry=0,
complain=complain@entry=35)
    at ../../gcc/cp/pt.c:8654
#162 0x000000000080e33e in finish_template_type
(name=name@entry=0x7ffff69fa000, args=args@entry=0x7ffff69f79e0,
entering_scope=0) at ../../gcc/cp/semantics.c:3133
#163 0x0000000000797aaf in cp_parser_template_id
(parser=parser@entry=0x7ffff7fedab0,
template_keyword_p=template_keyword_p@entry=false,
check_dependency_p=<optimized out>, tag_type=tag_type@entry=none_type, 
    is_declaration=is_declaration@entry=true) at ../../gcc/cp/parser.c:14914
#164 0x0000000000797d5f in cp_parser_class_name
(parser=parser@entry=0x7ffff7fedab0,
typename_keyword_p=typename_keyword_p@entry=false,
template_keyword_p=template_keyword_p@entry=false, tag_type=none_type, 
    check_dependency_p=<optimized out>, class_head_p=<optimized out>,
is_declaration=true, enum_ok=true) at ../../gcc/cp/parser.c:21218
#165 0x0000000000789247 in cp_parser_qualifying_entity (is_declaration=true,
type_p=false, check_dependency_p=true, template_keyword_p=false,
typename_keyword_p=false, parser=0x7ffff7fedab0) at ../../gcc/cp/parser.c:6245
#166 cp_parser_nested_name_specifier_opt (parser=parser@entry=0x7ffff7fedab0,
typename_keyword_p=false, check_dependency_p=check_dependency_p@entry=true,
type_p=type_p@entry=false, is_declaration=is_declaration@entry=true)
    at ../../gcc/cp/parser.c:5929
#167 0x0000000000799a42 in cp_parser_nested_name_specifier
(is_declaration=true, type_p=false, check_dependency_p=true,
typename_keyword_p=false, parser=0x7ffff7fedab0) at ../../gcc/cp/parser.c:6168
#168 cp_parser_using_declaration (parser=parser@entry=0x7ffff7fedab0,
access_declaration_p=access_declaration_p@entry=true) at
../../gcc/cp/parser.c:17757
#169 0x00000000007a7bc9 in cp_parser_member_declaration
(parser=parser@entry=0x7ffff7fedab0) at ../../gcc/cp/parser.c:22322
#170 0x00000000007835ef in cp_parser_member_specification_opt
(parser=<optimized out>) at ../../gcc/cp/parser.c:22182
#171 cp_parser_class_specifier_1 (parser=0x7ffff7fedab0) at
../../gcc/cp/parser.c:21360
#172 cp_parser_class_specifier (parser=0x7ffff7fedab0) at
../../gcc/cp/parser.c:21596
#173 cp_parser_type_specifier (parser=parser@entry=0x7ffff7fedab0,
flags=flags@entry=1, decl_specs=decl_specs@entry=0x7fffffffd7d0,
is_declaration=is_declaration@entry=true, 
    declares_class_or_enum=declares_class_or_enum@entry=0x7fffffffd760,
is_cv_qualifier=is_cv_qualifier@entry=0x7fffffffd75f) at
../../gcc/cp/parser.c:15836
#174 0x0000000000798435 in cp_parser_decl_specifier_seq
(parser=parser@entry=0x7ffff7fedab0, flags=flags@entry=1,
decl_specs=decl_specs@entry=0x7fffffffd7d0,
declares_class_or_enum=declares_class_or_enum@entry=0x7fffffffd7cc)
    at ../../gcc/cp/parser.c:12758
#175 0x00000000007a69e6 in cp_parser_single_declaration
(parser=parser@entry=0x7ffff7fedab0, checks=checks@entry=0x0,
member_p=member_p@entry=false,
explicit_specialization_p=explicit_specialization_p@entry=false, 
    friend_p=friend_p@entry=0x7fffffffd8af) at ../../gcc/cp/parser.c:25782
#176 0x00000000007a6d6d in cp_parser_template_declaration_after_parameters
(parser=parser@entry=0x7ffff7fedab0,
parameter_list=parameter_list@entry=0x7ffff69f7900,
member_p=member_p@entry=false) at ../../gcc/cp/parser.c:25477
#177 0x00000000007a77a9 in cp_parser_explicit_template_declaration
(member_p=false, parser=0x7ffff7fedab0) at ../../gcc/cp/parser.c:25709
#178 cp_parser_template_declaration_after_export
(parser=parser@entry=0x7ffff7fedab0, member_p=<optimized out>) at
../../gcc/cp/parser.c:25727
#179 0x00000000007a79b9 in cp_parser_template_declaration
(parser=parser@entry=0x7ffff7fedab0, member_p=member_p@entry=false) at
../../gcc/cp/parser.c:14097
#180 0x00000000007af7da in cp_parser_declaration
(parser=parser@entry=0x7ffff7fedab0) at ../../gcc/cp/parser.c:12092
#181 0x00000000007ae027 in cp_parser_declaration_seq_opt
(parser=parser@entry=0x7ffff7fedab0) at ../../gcc/cp/parser.c:12022
#182 0x00000000007ae34d in cp_parser_translation_unit (parser=0x7ffff7fedab0)
at ../../gcc/cp/parser.c:4324
#183 c_parse_file () at ../../gcc/cp/parser.c:37486
#184 0x000000000090d063 in c_common_parse_file () at
../../gcc/c-family/c-opts.c:1064
#185 0x0000000000d89fff in compile_file () at ../../gcc/toplev.c:465
#186 0x000000000065ae84 in do_compile () at ../../gcc/toplev.c:1998
#187 toplev::main (this=this@entry=0x7fffffffda90, argc=argc@entry=15,
argv=argv@entry=0x7fffffffdb98) at ../../gcc/toplev.c:2127
#188 0x000000000065d0d7 in main (argc=15, argv=0x7fffffffdb98) at
../../gcc/main.c:39

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