[Bug c++/114377] [13 Regression] GCC crashes on an example of CTAD for alias templates
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 1 20:31:54 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114377
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:60e1e13f458f1fcfb05a30ace57fa682461e2732
commit r13-8669-g60e1e13f458f1fcfb05a30ace57fa682461e2732
Author: centurion <centurion009@proton.me>
Date: Wed Mar 27 18:36:37 2024 +0000
c++: alias CTAD and template template parm [PR114377]
To match all the other places that pull a _TEMPLATE_PARM out of a
_DECL (get_template_parm_index, etc.).
This change is too small to be legally significant for copyright.
PR c++/114377
gcc/cp/ChangeLog:
* pt.cc (find_template_parameter_info::found): Use TREE_TYPE for
TEMPLATE_DECL instead of DECL_INITIAL.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/class-deduction-alias19.C: New test.
Reviewed-by: Jason Merrill <jason@redhat.com>
(cherry picked from commit 801e82acd6b4f0cf863529875947e394899ea7b9)
More information about the Gcc-bugs
mailing list