https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97823
Bug ID: 97823
Summary: internal compiler error: in poplevel_class, at
cp/name-lookup.c:4112
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/cpp1y/auto-fn61.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++2a -pedantic-errors -Wno-long-long -S -o
auto-fn61.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/cpp1y/auto-fn61.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++2a -pedantic-errors -Wno-long-long -S -o auto-fn61.s
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/testsuite/g++.dg/cpp1y/auto-fn61.C:13:15:
internal compiler error: in poplevel_class, at cp/name-lookup.c:4112
0x5f01f1 poplevel_class()
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/name-lookup.c:4112
0x654de8 popclass()
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/class.c:7994
0x6f7a2b pop_inner_scope(tree_node*, tree_node*)
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/name-lookup.c:4087
0x719fac cp_parser_class_specifier_1
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:24242
0x71af9b cp_parser_class_specifier
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:24543
0x71af9b cp_parser_type_specifier
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:17887
0x71bde9 cp_parser_decl_specifier_seq
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:14514
0x71cb24 cp_parser_simple_declaration
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:13771
0x7464e5 cp_parser_declaration
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:13591
0x746b51 cp_parser_translation_unit
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:4796
0x746b51 c_parse_file()
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/cp/parser.c:44397
0x8178ad c_common_parse_file()
/mnt/sdd1/home/src/gcc-mirror-git/gcc/gcc/c-family/c-opts.c:1196
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
XFAIL: g++.dg/cpp1y/auto-fn61.C -std=c++2a (internal compiler error)
PASS: g++.dg/cpp1y/auto-fn61.C -std=c++2a (test for excess errors)