This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/68719] New: [concepts] placeholder deduction doesn't work for member functions
- From: "ryan.burn at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 05 Dec 2015 14:59:44 +0000
- Subject: [Bug c++/68719] New: [concepts] placeholder deduction doesn't work for member functions
- Auto-submitted: auto-generated
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;
}
//////////////////////////////////////////////////////////////////