https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84374
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84374
--- Comment #3 from Marek Polacek ---
Author: mpolacek
Date: Tue Sep 10 02:29:13 2019
New Revision: 275557
URL: https://gcc.gnu.org/viewcvs?rev=275557=gcc=rev
Log:
PR c++/84374 - diagnose invalid uses of decltype(auto).
* decl.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84374
Marek Polacek changed:
What|Removed |Added
Keywords||patch
--- Comment #2 from Marek Polacek
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84374
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84374
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84374
--- Comment #1 from Stephen M. Webb ---
Hrm, evidently the problem is not limited to trailing-return-type declarations,
since the following code also results in no diagnostic.
decltype(auto)* f();
class C { decltype(auto)* g(); };