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

            Bug ID: 66533
           Summary: ICE: in dependent_type_p, at cp/pt.c:21073
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
  Target Milestone: ---

% echo "auto a([](auto) -> decltype((void)0) {});" | g++ -c -x c++ -std=c++14 -
<stdin>: In lambda function:
<stdin>:1:20: internal compiler error: in dependent_type_p, at cp/pt.c:21073
0x101e01e3 dependent_type_p(tree_node*)
        ../../gcc/gcc/cp/pt.c:21073
0x101a48a7 require_complete_types_for_parms
        ../../gcc/gcc/cp/decl.c:11123
0x101a48a7 check_function_type
        ../../gcc/gcc/cp/decl.c:13272
0x101a48a7 start_preparsed_function(tree_node*, tree_node*, int)
        ../../gcc/gcc/cp/decl.c:13446
0x102bf6a3 cp_parser_lambda_body
        ../../gcc/gcc/cp/parser.c:9498
0x102bf6a3 cp_parser_lambda_expression
        ../../gcc/gcc/cp/parser.c:9060
0x102bf6a3 cp_parser_primary_expression
        ../../gcc/gcc/cp/parser.c:4453
0x102ce157 cp_parser_postfix_expression
        ../../gcc/gcc/cp/parser.c:6131
0x102d19c7 cp_parser_unary_expression
        ../../gcc/gcc/cp/parser.c:7412
0x102d2eaf cp_parser_binary_expression
        ../../gcc/gcc/cp/parser.c:8147
0x102d391b cp_parser_assignment_expression
        ../../gcc/gcc/cp/parser.c:8404
0x102d3fff cp_parser_constant_expression
        ../../gcc/gcc/cp/parser.c:8650
0x102d55d7 cp_parser_parenthesized_expression_list
        ../../gcc/gcc/cp/parser.c:6880
0x102d68ab cp_parser_initializer
        ../../gcc/gcc/cp/parser.c:19310
0x102f7edb cp_parser_init_declarator
        ../../gcc/gcc/cp/parser.c:17263
0x102fad43 cp_parser_simple_declaration
        ../../gcc/gcc/cp/parser.c:11608
0x102f26e7 cp_parser_block_declaration
        ../../gcc/gcc/cp/parser.c:11482
0x102ffc8f cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:11379
0x102fdc2f cp_parser_declaration_seq_opt
        ../../gcc/gcc/cp/parser.c:11265
0x102fe013 cp_parser_translation_unit
        ../../gcc/gcc/cp/parser.c:4100
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to