[Bug c++/67012] decltype(auto) with trailing return type

2021-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67012

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |9.0

[Bug c++/67012] decltype(auto) with trailing return type

2018-08-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67012

Marek Polacek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Marek Polacek  ---
Fixed.

[Bug c++/67012] decltype(auto) with trailing return type

2018-08-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67012

--- Comment #2 from Marek Polacek  ---
Author: mpolacek
Date: Fri Aug 24 15:48:43 2018
New Revision: 263836

URL: https://gcc.gnu.org/viewcvs?rev=263836=gcc=rev
Log:
PR c++/67012
PR c++/86942
* decl.c (grokdeclarator): Disallow functions with trailing return
type with decltype(auto) as its type.  Also check the function if
it's inner declarator doesn't exist

* g++.dg/cpp0x/auto52.C: New test.
* g++.dg/cpp1y/auto-fn52.C: New test.
* g++.dg/cpp1y/auto-fn53.C: New test.
* g++.dg/cpp1y/auto-fn54.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/auto52.C
trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn52.C
trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn53.C
trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn54.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog

[Bug c++/67012] decltype(auto) with trailing return type

2018-08-15 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67012

Marek Polacek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||mpolacek at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |mpolacek at gcc dot 
gnu.org

[Bug c++/67012] decltype(auto) with trailing return type

2018-08-14 Thread redbeard0531 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67012

Mathias Stearn  changed:

   What|Removed |Added

 CC||redbeard0531 at gmail dot com

--- Comment #1 from Mathias Stearn  ---
Still repros with latest trunk builds, even with -pedantic:
https://godbolt.org/g/vMDcwg

[Bug c++/67012] decltype(auto) with trailing return type

2015-07-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67012

Jonathan Wakely redi at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||accepts-invalid
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-07-26
 Ever confirmed|0   |1