Commit a96237da by Jason Merrill

new

From-SVN: r40734
parent 3ae885c0
// This test should get a linker error for the reference to A<int>::i.
// An XPASS on this test is really a FAIL.
// excess errors test - XFAIL *-*-*
template <class T> struct B { static const int i = 3; };
template <class T> struct A { static const int i = B<T>::i; };
const int *p = &A<int>::i;
int main(){}
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