[Bug c++/68719] New: [concepts] placeholder deduction doesn't work for member functions
ryan.burn at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Dec 5 14:59:00 GMT 2015
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;
}
//////////////////////////////////////////////////////////////////
More information about the Gcc-bugs
mailing list