diff options
author | Patrick Palka <ppalka@redhat.com> | 2021-06-11 16:00:52 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2021-06-11 16:00:52 -0400 |
commit | b0d73a66ae3962fa83309527d85613d72a6aa43d (patch) | |
tree | e0413db10b88d4d2e525bfa2960dfd6c819a99c9 /gcc/gcc.c | |
parent | 1e690757d30775ed340a368b9a9463b2ad68de01 (diff) | |
download | gcc-b0d73a66ae3962fa83309527d85613d72a6aa43d.zip gcc-b0d73a66ae3962fa83309527d85613d72a6aa43d.tar.gz gcc-b0d73a66ae3962fa83309527d85613d72a6aa43d.tar.bz2 |
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.
Diffstat (limited to 'gcc/gcc.c')
0 files changed, 0 insertions, 0 deletions