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++/84971] New: internal compiler error: in build_non_dependent_expr, at cp/pt.c:25367


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

            Bug ID: 84971
           Summary: internal compiler error: in build_non_dependent_expr,
                    at cp/pt.c:25367
           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:

void a();
void a(short);
template <int> decltype(__builtin_inf) b { int(&(&a) >) }

Output:

$ cc1plus 
<stdin>:3:54: internal compiler error: in build_non_dependent_expr, at
cp/pt.c:25367
0x10518a7 build_non_dependent_expr(tree_node*)
        /home/vegard/git/gcc/gcc/cp/pt.c:25367
0x13933bf build_x_binary_op(unsigned int, tree_code, tree_node*, tree_code,
tree_node*, tree_code, tree_node**, int)
        /home/vegard/git/gcc/gcc/cp/typeck.c:4024
0xec484b cp_parser_binary_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:9356
0xec62ca cp_parser_assignment_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:9486
0xed4304 cp_parser_parenthesized_expression_list
        /home/vegard/git/gcc/gcc/cp/parser.c:7764
0xedcd27 cp_parser_functional_cast
        /home/vegard/git/gcc/gcc/cp/parser.c:27371
0xf76815 cp_parser_postfix_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:6956
0xf2a4b7 cp_parser_unary_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:8322
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
0xecc0a3 cp_parser_constant_expression
        /home/vegard/git/gcc/gcc/cp/parser.c:9770
0xecd8d5 cp_parser_initializer_clause
        /home/vegard/git/gcc/gcc/cp/parser.c:21916
0xecd8d5 cp_parser_initializer_list
        /home/vegard/git/gcc/gcc/cp/parser.c:22185
0xecd8d5 cp_parser_braced_list
        /home/vegard/git/gcc/gcc/cp/parser.c:21956
0xedc221 cp_parser_initializer
        /home/vegard/git/gcc/gcc/cp/parser.c:21874
0xfa0f3d cp_parser_init_declarator
        /home/vegard/git/gcc/gcc/cp/parser.c:19677
0xfa3619 cp_parser_single_declaration
        /home/vegard/git/gcc/gcc/cp/parser.c:27281
0xfc5428 cp_parser_template_declaration_after_parameters
        /home/vegard/git/gcc/gcc/cp/parser.c:26876
0xfc3a2b cp_parser_explicit_template_declaration
        /home/vegard/git/gcc/gcc/cp/parser.c:27114
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]