[Bug c++/110524] [C++20] ICE with use of function template name with no prior declaration in decltype
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jul 15 13:53:17 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110524
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>:
https://gcc.gnu.org/g:97ceaa110e1607ec8f4f1223200868e1642f3cc7
commit r14-2538-g97ceaa110e1607ec8f4f1223200868e1642f3cc7
Author: Patrick Palka <ppalka@redhat.com>
Date: Sat Jul 15 09:47:36 2023 -0400
c++: mangling template-id of unknown template [PR110524]
This fixes a crash when mangling an ADL-enabled call to a template-id
naming an unknown template (as per P0846R0).
PR c++/110524
gcc/cp/ChangeLog:
* mangle.cc (write_expression): Handle TEMPLATE_ID_EXPR
whose template is already an IDENTIFIER_NODE.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/fn-template26.C: New test.
More information about the Gcc-bugs
mailing list