Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / parse / constant2.C
blob43fad2e28f630ef177e74aa4b27333c1cb003375
1 // { dg-do compile }
2 // Origin: <gawrilow at math dot tu-berlin dot de>
3 // PR c++/10750: error when using a static const member initialized 
4 //  with a dependent expression as constant-expression
6 struct A
8   enum { a = 42 };
9 };
11 template <class Q>
12 struct B
14   static const int b = Q::a;
17 template <typename T, template <typename> class P>
18 struct C
20   static const bool a = T::a;
21   static const bool a_ = a;
22   static const bool b = P<T>::b;
23   static const bool b_ = b;
24   static const int c = sizeof(T);
25   static const int c_ = c;
28 template struct C<A,B>;