https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125559
Bug ID: 125559
Summary: address of parenthesized qualified template-id
resolving to non-static member incorrectly accepted
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ppalka at gcc dot gnu.org
Target Milestone: ---
struct A {
void f();
template<class T> void g();
};
int main() {
&(A::f); // correctly rejected by [expr.unary.op]/4
&(A::g<int>); // incorrectly accepted
}