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

            Bug ID: 68061
           Summary: Can't use [[deprecated]] with requires clause
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chrisb2244 at gmail dot com
  Target Milestone: ---

Either of 

template<ConceptName... parameter> requires RequiresConcept<A, parameter...>
const T x(const parameter... p) const { ... }

or 

template<ConceptName... parameter, std::enable_if<...>
[[deprecated]] const T x(const parameter... p) const { ... }

will compile (using 'g++-trunk -std=c++1z ...')

Using the 'requires' clause along with an attempt to deprecate the function
using [[deprecated]] produces

    "two consecutive '[' shall only introduce an attribute before '[' token"

Reply via email to