re PR c++/47589 (internal compiler error: Segmentation fault)

2011-02-03  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR c++/47589
	* g++.dg/pr47589.C: New test.

From-SVN: r169815
This commit is contained in:
Jonathan Wakely 2011-02-03 22:47:37 +00:00 committed by Jonathan Wakely
parent a6e508f91d
commit a7a871771c
2 changed files with 31 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-02-03 Jonathan Wakely <jwakely.gcc@gmail.com>
PR c++/47589
* g++.dg/pr47589.C: New test.
2011-02-03 Dodji Seketeli <dodji@redhat.com>
PR c++/47398

View File

@ -0,0 +1,26 @@
// PR c++/47589
// { dg-do compile }
struct F
{
typedef void(*Cb)();
F(Cb);
};
struct C
{
template<class D> static void f();
};
template<class D>
struct TF : F
{
TF() : F(C::f<D>) { }
};
struct DTC : TF<DTC>
{
DTC() { }
};