re PR c++/29535 (ICE in instantiate_class_template, at cp/pt.c:5728)
PR c++/29535 * g++.dg/template/crash66.C: New test. From-SVN: r120385
This commit is contained in:
parent
0d6959a024
commit
7bda5cc2e6
2 changed files with 20 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2007-01-03 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/29535
|
||||
* g++.dg/template/crash66.C: New test.
|
||||
|
||||
PR c++/29054
|
||||
* g++.dg/template/friend49.C: New test.
|
||||
|
||||
|
|
17
gcc/testsuite/g++.dg/template/crash66.C
Normal file
17
gcc/testsuite/g++.dg/template/crash66.C
Normal file
|
@ -0,0 +1,17 @@
|
|||
// PR c++/29535
|
||||
// { dg-do compile }
|
||||
|
||||
template <class INDEX> struct SetRegion2D
|
||||
{
|
||||
struct FloodFillControl
|
||||
{
|
||||
struct Allocator{};
|
||||
};
|
||||
};
|
||||
template <int DIM, class PIXELINDEX>
|
||||
struct MotionSearcher
|
||||
{
|
||||
typedef SetRegion2D<PIXELINDEX> Region_t;
|
||||
MotionSearcher (typename Region_t::FloodFillControl::Allocator &a_rAllocator);
|
||||
};
|
||||
class MotionSearcherY : public MotionSearcher<1, int> {};
|
Loading…
Add table
Reference in a new issue