summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash44.C
blob: 2439daf91dac7ebeccf817ff7b7f39b425872339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// { dg-do assemble  }
// GROUPS passed old-abort
template <class T> class bug {

public:
    void		Foo(const int = 0);
    void		NotRedeclared(const int);

private:
	T		TheItem;
};

template <class T> void bug<T>::NotRedeclared(const int)
{
}

template <class T> void bug<T>::Foo(const int)
{
}

int
main()
{
	bug<char>	InstantiatedBug;

	return 0;
}