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:
Paolo Carlini 2014-12-19 16:50:31 +00:00 committed by Paolo Carlini
parent d427aa2e04
commit fc2770b996
2 changed files with 23 additions and 0 deletions

View File

@ -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

View 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" }