diff options
author | Patrick Palka <ppalka@redhat.com> | 2020-04-18 06:22:14 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2020-04-18 06:22:14 -0400 |
commit | e43b28ae7f09c0b7a30ab0dd976db761eeb1b0f9 (patch) | |
tree | 7f40923470b0d0449338419d8359f2e96011b3be /gcc/fortran/simplify.c | |
parent | c5bac7d127f288fd2f8a1f15c3f30da5903141c6 (diff) | |
download | gcc-e43b28ae7f09c0b7a30ab0dd976db761eeb1b0f9.zip gcc-e43b28ae7f09c0b7a30ab0dd976db761eeb1b0f9.tar.gz gcc-e43b28ae7f09c0b7a30ab0dd976db761eeb1b0f9.tar.bz2 |
c++: Abbreviated function template return type [PR92187]
When updating an auto return type of an abbreviated function template in
splice_late_return_type, we should also propagate PLACEHOLDER_TYPE_CONSTRAINTS
(and cv-qualifiers) of the original auto node.
gcc/cp/ChangeLog:
PR c++/92187
* pt.c (splice_late_return_type): Propagate cv-qualifiers and
PLACEHOLDER_TYPE_CONSTRAINTS from the original auto node to the new one.
gcc/testsuite/ChangeLog:
PR c++/92187
* g++.dg/concepts/abbrev5.C: New test.
* g++.dg/concepts/abbrev6.C: New test.
Diffstat (limited to 'gcc/fortran/simplify.c')
0 files changed, 0 insertions, 0 deletions