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

            Bug ID: 68719
           Summary: [concepts] placeholder deduction doesn't work for
                    member functions
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ryan.burn at gmail dot com
  Target Milestone: ---

The below code should compile but gives this error with gcc 20151123:

main.cpp: In function ‘int main()’:
main.cpp:7:3: error: expected primary-expression before ‘double’
   double (auto::*fptr)(int) = &A::f;
   ^~~~~~

//////////////////////////////////////////////////////////////////
struct A {   
  double f(int i) {   
  }   
};   

int main() {   
  double (auto::*fptr)(int) = &A::f;   
  return 0;   
}
//////////////////////////////////////////////////////////////////

Reply via email to