[Bug testsuite/97825] New: internal compiler error: in build_ptrmemfunc, at cp/typeck.c:9199

vladimir.kokovic at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Nov 14 08:56:05 GMT 2020


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

            Bug ID: 97825
           Summary: internal compiler error: in build_ptrmemfunc, at
                    cp/typeck.c:9199
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vladimir.kokovic at gmail dot com
  Target Milestone: ---

GIT_DIR=/mnt/WD-Elements-25A1/src/gcc-mirror-git/gcc/.git git describe HEAD
misc/first-auto-changelog-4144-gc283a711c85

Build a cross compiler for MinGW(gcc 10.2.0)

Executing on host:
/mnt/WD-Elements-25A1/src/gcc-mirror-git/mingw-objdir/gcc/testsuite/g++/../../xg++
-B/mnt/WD-Elements-25A1/src/gcc-mirror-git/mingw-objdir/gcc/testsuite/g++/../../
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/testsuite/g++.dg/other/ptrmem8.C   
-fdiagnostics-plain-output  -nostdinc++
-I/mnt/sdd1/home/src/gcc-mirror-git/mingw-objdir/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32
-I/mnt/sdd1/home/src/gcc-mirror-git/mingw-objdir/x86_64-w64-mingw32/libstdc++-v3/include
-I/mnt/sdd1/home/src/gcc-mirror-git/gcc/libstdc++-v3/libsupc++
-I/mnt/sdd1/home/src/gcc-mirror-git/gcc/libstdc++-v3/include/backward
-I/mnt/sdd1/home/src/gcc-mirror-git/gcc/libstdc++-v3/testsuite/util
-fmessage-length=0  -std=c++98  -pedantic-errors -Wno-long-long  -S -o
ptrmem8.s    (timeout = 300)
spawn -ignore SIGHUP
/mnt/WD-Elements-25A1/src/gcc-mirror-git/mingw-objdir/gcc/testsuite/g++/../../xg++
-B/mnt/WD-Elements-25A1/src/gcc-mirror-git/mingw-objdir/gcc/testsuite/g++/../../
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/testsuite/g++.dg/other/ptrmem8.C
-fdiagnostics-plain-output -nostdinc++
-I/mnt/sdd1/home/src/gcc-mirror-git/mingw-objdir/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32
-I/mnt/sdd1/home/src/gcc-mirror-git/mingw-objdir/x86_64-w64-mingw32/libstdc++-v3/include
-I/mnt/sdd1/home/src/gcc-mirror-git/gcc/libstdc++-v3/libsupc++
-I/mnt/sdd1/home/src/gcc-mirror-git/gcc/libstdc++-v3/include/backward
-I/mnt/sdd1/home/src/gcc-mirror-git/gcc/libstdc++-v3/testsuite/util
-fmessage-length=0 -std=c++98 -pedantic-errors -Wno-long-long -S -o ptrmem8.s
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/testsuite/g++.dg/other/ptrmem8.C: In
function 'void foo(void (A::*)())':
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/testsuite/g++.dg/other/ptrmem8.C:9:9:
internal compiler error: in build_ptrmemfunc, at cp/typeck.c:9199
0x5f35cc build_ptrmemfunc(tree_node*, tree_node*, int, bool, int)
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/typeck.c:9199
0x7b5e17 cp_build_addr_expr_1
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/typeck.c:6301
0x7b5e17 cp_build_addr_expr_strict
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/typeck.c:6557
0x7b5e17 build_x_unary_op(unsigned int, tree_code, cp_expr, int)
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/typeck.c:6183
0x735253 cp_parser_unary_expression
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:8595
0x70f40a cp_parser_binary_expression
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:9655
0x710dcc cp_parser_assignment_expression
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:9960
0x711102 cp_parser_expression
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:10128
0x713dc8 cp_parser_expression_statement
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:11797
0x71ee61 cp_parser_statement
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:11593
0x7206cd cp_parser_statement_seq_opt
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:11944
0x720780 cp_parser_compound_statement
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:11894
0x73801c cp_parser_function_body
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:23406
0x73801c cp_parser_ctor_initializer_opt_and_function_body
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:23457
0x73bb20 cp_parser_function_definition_after_declarator
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:29351
0x73cacc cp_parser_function_definition_from_specifiers_and_declarator
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:29267
0x73cacc cp_parser_init_declarator
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:20979
0x7421e4 cp_parser_single_declaration
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:29838
0x742357 cp_parser_template_declaration_after_parameters
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:29411
0x74297a cp_parser_explicit_template_declaration
        /mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:29676
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.
compiler exited with status 1
FAIL: g++.dg/other/ptrmem8.C  -std=c++98 (internal compiler error)
FAIL: g++.dg/other/ptrmem8.C  -std=c++98  (test for errors, line 9)
FAIL: g++.dg/other/ptrmem8.C  -std=c++98  (test for errors, line 15)


More information about the Gcc-bugs mailing list