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++/84610] New: internal compiler error: in synthesize_implicit_template_parm, at cp/parser.c:38843


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

            Bug ID: 84610
           Summary: internal compiler error: in
                    synthesize_implicit_template_parm, at
                    cp/parser.c:38843
           Product: gcc
           Version: 8.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vegard.nossum at gmail dot com
  Target Milestone: ---

Input:

a (int &__attribute__ ((aligned(auto x)) y));

Output:

$ xgcc -x c++ -c input.cc
input.cc:1:38: internal compiler error: in synthesize_implicit_template_parm,
at cp/parser.c:38843
 a (int &__attribute__ ((aligned(auto x)) y));
                                      ^
0xe8560b synthesize_implicit_template_parm
        /home/vegard/git/gcc/gcc/cp/parser.c:38843
0xf2b5cd cp_parser_simple_type_specifier
        /home/vegard/git/gcc/gcc/cp/parser.c:16966
0xf734e6 cp_parser_postfix_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:6947
0xf26fa7 cp_parser_unary_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:8281
0xebcdba cp_parser_cast_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:9049
0xebf3e6 cp_parser_binary_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:9150
0xec2eba cp_parser_assignment_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:9437
0xed0f94 cp_parser_parenthesized_expression_list
        /home/vegard/git/gcc/gcc/cp/parser.c:7723
0xed3a6b cp_parser_gnu_attribute_list
        /home/vegard/git/gcc/gcc/cp/parser.c:24995
0xed3a6b cp_parser_gnu_attributes_opt
        /home/vegard/git/gcc/gcc/cp/parser.c:24910
0xfb4112 cp_parser_parameter_declaration
        /home/vegard/git/gcc/gcc/cp/parser.c:21504
0xfb67da cp_parser_parameter_declaration_list
        /home/vegard/git/gcc/gcc/cp/parser.c:21252
0xfb9470 cp_parser_parameter_declaration_clause
        /home/vegard/git/gcc/gcc/cp/parser.c:21173
0xf555ef cp_parser_direct_declarator
        /home/vegard/git/gcc/gcc/cp/parser.c:19926
0xf9b858 cp_parser_declarator
        /home/vegard/git/gcc/gcc/cp/parser.c:19800
0xf9bb2e cp_parser_init_declarator
        /home/vegard/git/gcc/gcc/cp/parser.c:19326
0xfa2a97 cp_parser_simple_declaration
        /home/vegard/git/gcc/gcc/cp/parser.c:13009
0xfa8c88 cp_parser_block_declaration
        /home/vegard/git/gcc/gcc/cp/parser.c:12827
0xffb8d5 cp_parser_declaration
        /home/vegard/git/gcc/gcc/cp/parser.c:12724
0xff298b cp_parser_declaration_seq_opt
        /home/vegard/git/gcc/gcc/cp/parser.c:12600

Version:

xgcc (GCC) 8.0.1 20180204 (experimental)

built from git fdae6180ad24fa6303fa046114f3e4b66b8db34d

It seems to have been introduced somewhere between 5.5.0 and 6.1.0.

Test case was reduced by C-Reduce.

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