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

            Bug ID: 64959
           Summary: SFINAE in UDLs
           Product: gcc
           Version: 4.9.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: d.truby at warwick dot ac.uk

Created attachment 34684
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34684&action=edit
Preprocessed minimal code example

enable_if cannot be used to select between overloads of UDLs in C++11. This
should not be the case since the standard (section 2.14.8) requires the UDL to
be translated to a normal function call (where enable_if should be able to be
used in this way).

The attached code is a small example demonstrating the problem (note: clang
allows this example).

Reply via email to