PR c++/84374 - diagnose invalid uses of decltype(auto).
authorMarek Polacek <polacek@redhat.com>
Tue, 10 Sep 2019 02:29:13 +0000 (02:29 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 10 Sep 2019 02:29:13 +0000 (02:29 +0000)
commit77df40e8127ec4f62c01c15f2d6f76d995424863
tree822ee69b10dda22574ed61f738c3de26535abdc0
parentfa412b7c52a8e023a16f853cc7f7efc7265b81ef
PR c++/84374 - diagnose invalid uses of decltype(auto).

* decl.c (grokdeclarator): Diagnose wrong usage of decltype(auto) in
a function declaration.

* g++.dg/cpp1y/auto-fn57.C: New test.

From-SVN: r275557
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/auto-fn57.C [new file with mode: 0644]