aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2020-07-08 19:45:34 -0400
committerMarek Polacek <polacek@redhat.com>2020-07-17 11:43:39 -0400
commite7f0873a9c4ebccd078fc5330866efe0cd4c1309 (patch)
treeaa7a95a573fcb4e35b6dfd38f472cb714fa65944 /gcc/go
parentc08ff9f81914c6028c586e5ecdec3736cd9a4fec (diff)
downloadgcc-e7f0873a9c4ebccd078fc5330866efe0cd4c1309.zip
gcc-e7f0873a9c4ebccd078fc5330866efe0cd4c1309.tar.gz
gcc-e7f0873a9c4ebccd078fc5330866efe0cd4c1309.tar.bz2
c++: Diagnose cv-qualified decltype(auto) [PR79815]
"If the placeholder is the decltype(auto) type-specifier, T shall be the placeholder alone." but we weren't detecting "const decltype(auto)". I've just expanded the existing diagnostic detecting "decltype(auto) &" and similar. gcc/cp/ChangeLog: PR c++/79815 * decl.c (grokdeclarator): Detect cv-qual decltype(auto). * pt.c (do_auto_deduction): Likewise. gcc/testsuite/ChangeLog: PR c++/79815 * g++.dg/cpp1y/auto-fn59.C: New test.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions