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

            Bug ID: 97885
           Summary: overload resolution fails with the existence of both a
                    constrained and a non-constrained template
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nickgray0 at brown dot edu
  Target Milestone: ---

see: https://godbolt.org/z/aqe9nq

the constrained overload should be invoked, however the compiler reports that
the overload resolution is ambiguous. This bug does not exist in GCC 10.1, it
first appears in GCC 10.2 and affects all versions of GCC onwards including GCC
trunk.

Reply via email to