Created attachment 54937 [details] gzipped C++ source code The attached C++ code, does this with recent gcc trunk: $ ../results.20230426.asan.ubsan/bin/gcc -c -w -march=znver1 bug910.cc $ ../results.20230427.asan.ubsan/bin/gcc -c -w -march=znver1 bug910.cc 2>&1 | fgrep internal /home/dcb36/rpmbuild/BUILD/media-downloader-2.9.0/src/engines/../utils/threads.hpp:55:79: internal compiler error: in instantiate_decl, at cp/pt.cc:27097 $ ../results.20230426.asan.ubsan/bin/gcc -v 2>&1 | fgrep exp gcc version 14.0.0 20230426 (experimental) (5fce06b868ec0d4f) $ ../results.20230427.asan.ubsan/bin/gcc -v 2>&1 | fgrep exp gcc version 14.0.0 20230427 (experimental) (d94ca762f6e0e4f1) $ git log 5fce06b868ec0d4f..d94ca762f6e0e4f1 | grep -c "^commit" 43 I have a reduction running.
Created attachment 54938 [details] gzipped C++ source code After an hour of reduction, I have the attached file. C++ code takes a long time to reduce with cvise.
Attempting a bisection.
(In reply to David Binderman from comment #2) > Attempting a bisection. Current range is a8e1551bdb372aa3..d94ca762f6e0e4f1.
(In reply to David Binderman from comment #3) > (In reply to David Binderman from comment #2) > > Attempting a bisection. > > Current range is a8e1551bdb372aa3..d94ca762f6e0e4f1. Latest range is d60cbbfaa9a3ad3b..d94ca762f6e0e4f1, which is 6 commits. Two of those commits are by Jason Merrill and are the only commits in the C++ area. Adding Jason for their best advice.
This commit commit 95d4c0d2e6318aef88ba0bc607dfc1ec6b7a612f Author: Jason Merrill <jason@redhat.com> Date: Thu Mar 16 16:55:39 2023 -0400 c++: restore instantiate_decl assert looks to be a hot candidate.
Created attachment 54944 [details] C++ source code I can't reduce the code beyond this file.
Created attachment 54949 [details] Further reduced version of David's reproducer
So started with r14-283-g95d4c0d2e6318a.
Dup. *** This bug has been marked as a duplicate of bug 109658 ***