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

david.godfrey99 at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Jul 25 21:55:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67012

            Bug ID: 67012
           Summary: decltype(auto) with trailing return type
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: david.godfrey99 at gmail dot com
  Target Milestone: ---

Compiles in GCC but not Clang:

decltype(auto) f() -> int;

The code is ill-formed because only auto is allowed with a trailing return
type.



More information about the Gcc-bugs mailing list