This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/68719] New: [concepts] placeholder deduction doesn't work for member functions


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;   
}
//////////////////////////////////////////////////////////////////

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]