[Bug c++/16153] New: "typeof" fails in building pointer-to-member-function
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Wed Jun 23 09:15:00 GMT 2004
class B{};
class A{
public:
void Foo(B& buf) {}
};
int main() {
void (A::*p)(B&) = &A::Foo;
A a;
void (A::*q)(B&) = &typeof<a>::Foo;
return 0;
}
gets you:
~/ootbc/common/test/src$ g++ foo.cc
foo.cc: In function `int main()':
foo.cc:10: error: expected primary-expression before "typeof"
foo.cc:10: error: expected `,' or `;' before "typeof"
Parentheses don't seem to help. Comeau doesn't do "typeof"
Ivan
--
Summary: "typeof" fails in building pointer-to-member-function
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16153
More information about the Gcc-bugs
mailing list