Commit 0234ca02 by Jason Merrill

tweak

From-SVN: r25930
parent 93aa462d
// Build don't link:
// Origin: Jason Merrill <jason@cygnus.com>
struct A
{
A() : x(123) { }
int x;
};
A a;
template<const int A::*PX>
struct B
{
static int g() { return a.*PX; }
struct A {
int i;
};
template<const int A::* P>
struct B { };
int main(int argc, char *argv[])
int main()
{
int n = B<&A::x>::g();
B<&A::i> b;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment