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

            Bug ID: 98600
           Summary: Pointer-to-member deduced type not accepted as
                    template parameter
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: koncek.marian at gmail dot com
  Target Milestone: ---

Created attachment 49918
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49918&action=edit
Example what GCC fails to compile

GCC is not able to compile function declared like this:

template<typename Type, auto(Type::*Member)>
void f();

See this: https://godbolt.org/z/c6sbv3
(also attached)

Both Clang and GCC are able to compile f2, but GCC fails to compile the
function f1.
  • [Bug c++/98600] New: Pointer-t... koncek.marian at gmail dot com via Gcc-bugs

Reply via email to