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:
parent
a6e508f91d
commit
a7a871771c
2 changed files with 31 additions and 0 deletions
|
@ -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
|
||||
|
|
26
gcc/testsuite/g++.dg/pr47589.C
Normal file
26
gcc/testsuite/g++.dg/pr47589.C
Normal 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() { }
|
||||
};
|
||||
|
Loading…
Add table
Reference in a new issue