re PR c++/60493 (g++ throws segmentation fault on simple code)
2014-12-19 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60493 * g++.dg/template/crash120.C: New. From-SVN: r218957
This commit is contained in:
parent
d427aa2e04
commit
fc2770b996
@ -1,3 +1,8 @@
|
||||
2014-12-19 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/60493
|
||||
* g++.dg/template/crash120.C: New.
|
||||
|
||||
2014-12-19 Kai Tietz <ktietz@redhat.com>
|
||||
|
||||
PR c++/61198
|
||||
|
18
gcc/testsuite/g++.dg/template/crash120.C
Normal file
18
gcc/testsuite/g++.dg/template/crash120.C
Normal file
@ -0,0 +1,18 @@
|
||||
// PR c++/60493
|
||||
|
||||
template <class T, class U>
|
||||
struct foo
|
||||
{
|
||||
};
|
||||
template <class T>
|
||||
struct baz
|
||||
{
|
||||
class bar;
|
||||
};
|
||||
|
||||
template <class T, class D>
|
||||
struct baz<T>::bar : foo<int, D> // { dg-error "parameters|required" }
|
||||
{
|
||||
};
|
||||
|
||||
baz<int>::bar it; // { dg-error "incomplete" }
|
Loading…
Reference in New Issue
Block a user