diff options
author | Patrick Palka <ppalka@redhat.com> | 2021-10-07 16:39:16 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2021-10-07 16:39:16 -0400 |
commit | fba228e259dd5112851527f2dbb62c5601100985 (patch) | |
tree | 9a1fbd7f782c54df55ab225ed1be057e3f3b0b8a /gcc/ada/gcc-interface/utils2.cc | |
parent | 7f78718b7958f603d50d5c30fd8735d73900bd1f (diff) | |
download | gcc-fba228e259dd5112851527f2dbb62c5601100985.zip gcc-fba228e259dd5112851527f2dbb62c5601100985.tar.gz gcc-fba228e259dd5112851527f2dbb62c5601100985.tar.bz2 |
c++: NTTP with array/function type after substitution [PR61355]
We're performing the [temp.param]/10 adjustment at parse time but not
also at substitution time.
PR c++/61355
gcc/cp/ChangeLog:
* pt.c (convert_template_argument): Perform array/function to
pointer conversion on the substituted type of an NTTP.
gcc/testsuite/ChangeLog:
* g++.old-deja/g++.pt/nontype5.C: Adjust.
* g++.dg/template/param6.C: New test.
Diffstat (limited to 'gcc/ada/gcc-interface/utils2.cc')
0 files changed, 0 insertions, 0 deletions