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

            Bug ID: 84968
           Summary: internal compiler error: in strip_typedefs_expr, at
                    cp/tree.c:1792
           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:

struct {
  template <typename>
  void a()
    try {
    } catch (int () noexcept (({ union b a; })))
};

Output:

$ cc1plus 
 void<unnamed struct>::a()
<stdin>:3:51: internal compiler error: in strip_typedefs_expr, at
cp/tree.c:1792
0x1377a9f strip_typedefs_expr(tree_node*, bool*)
        /home/vegard/git/gcc/gcc/cp/tree.c:1792
0x1374363 strip_typedefs_expr(tree_node*, bool*)
        /home/vegard/git/gcc/gcc/cp/tree.c:1813
0x13741b6 strip_typedefs_expr(tree_node*, bool*)
        /home/vegard/git/gcc/gcc/cp/tree.c:1813
0xcd34dd build_noexcept_spec(tree_node*, int)
        /home/vegard/git/gcc/gcc/cp/except.c:1223
0xeebc5c cp_parser_noexcept_specification_opt
        /home/vegard/git/gcc/gcc/cp/parser.c:24352
0xf72bbd cp_parser_exception_specification_opt
        /home/vegard/git/gcc/gcc/cp/parser.c:24380
0xf58cff cp_parser_direct_declarator
        /home/vegard/git/gcc/gcc/cp/parser.c:20024
0xf5fc70 cp_parser_declarator
        /home/vegard/git/gcc/gcc/cp/parser.c:19866
0xf9b0ce cp_parser_exception_declaration
        /home/vegard/git/gcc/gcc/cp/parser.c:24627
0xf9b0ce cp_parser_handler
        /home/vegard/git/gcc/gcc/cp/parser.c:24577
0xf9bc27 cp_parser_handler_seq
        /home/vegard/git/gcc/gcc/cp/parser.c:24553
0xf9bc27 cp_parser_function_try_block
        /home/vegard/git/gcc/gcc/cp/parser.c:24535
0xf9bc27 cp_parser_function_definition_after_declarator
        /home/vegard/git/gcc/gcc/cp/parser.c:26815
0xf9dd0c cp_parser_late_parsing_for_member
        /home/vegard/git/gcc/gcc/cp/parser.c:27699
0xf17c75 cp_parser_class_specifier_1
        /home/vegard/git/gcc/gcc/cp/parser.c:22742
0xf231cb cp_parser_class_specifier
        /home/vegard/git/gcc/gcc/cp/parser.c:22768
0xf231cb cp_parser_type_specifier
        /home/vegard/git/gcc/gcc/cp/parser.c:16774
0xf8858a cp_parser_decl_specifier_seq
        /home/vegard/git/gcc/gcc/cp/parser.c:13629
0xfa3a70 cp_parser_simple_declaration
        /home/vegard/git/gcc/gcc/cp/parser.c:12938
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)

Reply via email to