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.

Reply via email to