From-SVN: r25930
This commit is contained in:
Jason Merrill 1999-03-23 14:17:08 -05:00
parent 93aa462d4e
commit 0234ca0209

View File

@ -1,21 +1,14 @@
// 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;
}