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++/84977] New: internal compiler error: Segmentation fault (build_x_unary_op())


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

            Bug ID: 84977
           Summary: internal compiler error: Segmentation fault
                    (build_x_unary_op())
           Product: gcc
           Version: 8.0.1
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vegard.nossum at oracle dot com
                CC: webrown.cpp at gmail dot com
  Target Milestone: ---

Input:

a(int b, decltype(&(b = c(auto;))))

Output:

$ cc1plus 
<stdin>:1:27: error: expected primary-expression before 'auto'
<stdin>:1:31: error: expected ')' before ';' token
<stdin>:1:31: internal compiler error: Segmentation fault
0x3152ce9 crash_signal
        /home/vegard/git/gcc/gcc/toplev.c:325
0x13c5bac build_x_unary_op(unsigned int, tree_code, cp_expr, int)
        /home/vegard/git/gcc/gcc/cp/typeck.c:5595
0xf29932 cp_parser_unary_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:8272
0xebfeca cp_parser_cast_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:9090
0xec24f6 cp_parser_binary_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:9191
0xec62ca cp_parser_assignment_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:9486
0xec87ea cp_parser_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:9655
0xf7afbe cp_parser_decltype_expr
        /home/vegard/git/gcc/gcc/cp/parser.c:14061
0xf7afbe cp_parser_decltype
        /home/vegard/git/gcc/gcc/cp/parser.c:14135
0xf2db37 cp_parser_simple_type_specifier
        /home/vegard/git/gcc/gcc/cp/parser.c:17065
0xf22abd cp_parser_type_specifier
        /home/vegard/git/gcc/gcc/cp/parser.c:16852
0xf8858a cp_parser_decl_specifier_seq
        /home/vegard/git/gcc/gcc/cp/parser.c:13629
0xfb6b9d cp_parser_parameter_declaration
        /home/vegard/git/gcc/gcc/cp/parser.c:21506
0xfb94ea cp_parser_parameter_declaration_list
        /home/vegard/git/gcc/gcc/cp/parser.c:21318
0xfbc180 cp_parser_parameter_declaration_clause
        /home/vegard/git/gcc/gcc/cp/parser.c:21239
0xf5883f cp_parser_direct_declarator
        /home/vegard/git/gcc/gcc/cp/parser.c:19992
0xf9e4f8 cp_parser_declarator
        /home/vegard/git/gcc/gcc/cp/parser.c:19866
0xf9e7ce cp_parser_init_declarator
        /home/vegard/git/gcc/gcc/cp/parser.c:19392
0xfa57a7 cp_parser_simple_declaration
        /home/vegard/git/gcc/gcc/cp/parser.c:13065
0xfab998 cp_parser_block_declaration
        /home/vegard/git/gcc/gcc/cp/parser.c:12883
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Version:

GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu)

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