[Bug c++/92654] [8/9 Regression] internal compiler error: in lookup_template_class_1
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 12 23:44:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92654
--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:c2368db567a853b0765833b3bd4e7934f3c6be61
commit r10-6609-gc2368db567a853b0765833b3bd4e7934f3c6be61
Author: Jason Merrill <jason@redhat.com>
Date: Mon Feb 10 14:12:07 2020 +0100
c++: Fix constexpr if and braced functional cast.
While partially instantiating a generic lambda, we can encounter pack
expansions or constexpr if where we can't actually do the substitution
immediately, and instead remember a partial instantiation context
in *_EXTRA_ARGS. This includes any local_specializations used in the
pattern or condition. In this testcase our tree walk wasn't finding the
use
of i because we weren't walking into the type of a CONSTRUCTOR. Fixed by
moving the code for doing that from find_parameter_packs_r into
cp_walk_subtrees.
2020-02-11 Jason Merrill <jason@redhat.com>
PR c++/92583
PR c++/92654
* tree.c (cp_walk_subtrees): Walk CONSTRUCTOR types here.
* pt.c (find_parameter_packs_r): Not here.
More information about the Gcc-bugs
mailing list