]> gcc.gnu.org Git - gcc.git/commit
c++: Substitute into function parms in lexical order [PR96560]
authorPatrick Palka <ppalka@redhat.com>
Fri, 11 Jun 2021 20:00:52 +0000 (16:00 -0400)
committerPatrick Palka <ppalka@redhat.com>
Fri, 11 Jun 2021 20:00:52 +0000 (16:00 -0400)
commitb0d73a66ae3962fa83309527d85613d72a6aa43d
treee0413db10b88d4d2e525bfa2960dfd6c819a99c9
parent1e690757d30775ed340a368b9a9463b2ad68de01
c++: Substitute into function parms in lexical order [PR96560]

This makes tsubst_arg_types substitute into a function's parameter types
in left-to-right instead of right-to-left order, in accordance with DR 1227.

DR 1227
PR c++/96560

gcc/cp/ChangeLog:

* pt.c (tsubst_arg_types): Rearrange so that we substitute into
TYPE_ARG_TYPES in forward order while short circuiting
appropriately.  Adjust formatting.

gcc/testsuite/ChangeLog:

* g++.dg/template/sfinae-dr1227.C: New test.
gcc/cp/pt.c
gcc/testsuite/g++.dg/template/sfinae-dr1227.C [new file with mode: 0644]
This page took 0.063482 seconds and 6 git commands to generate.