gcc/testsuite/g++.old-deja/g++.brendan/crash44.C
raw| 1 | // { dg-do assemble } |
| 2 | // GROUPS passed old-abort |
| 3 | template <class T> class bug { |
| 4 | |
| 5 | public: |
| 6 | void Foo(const int = 0); |
| 7 | void NotRedeclared(const int); |
| 8 | |
| 9 | private: |
| 10 | T TheItem; |
| 11 | }; |
| 12 | |
| 13 | template <class T> void bug<T>::NotRedeclared(const int) |
| 14 | { |
| 15 | } |
| 16 | |
| 17 | template <class T> void bug<T>::Foo(const int) |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | int |
| 22 | main() |
| 23 | { |
| 24 | bug<char> InstantiatedBug; |
| 25 | |
| 26 | return 0; |
| 27 | } |