Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / expr / static_cast3.C
blob744648c3f45ef2486a46cf0e7d801cea4c57d404
1 template <class T> struct static_abort {};
3 template <class E>
4 struct any
6   const E& self() const { return static_cast<const E&>(*this); }
7 };
9 struct range : public any<range>
11   range() {}
13   template <class U>
14   range(const U&)
15   {
16     typedef typename static_abort<U>::ret t;
17   }
20 int main()
22   const any<range>& r = *new range();
23   r.self();