Commit 435eeab9 by Paolo Carlini Committed by Paolo Carlini

re PR c++/44118 (ICE: in instantiate_decl, at cp/pt.c:16657)

2011-02-20  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/44118
	* g++.dg/template/crash105.C: New.

From-SVN: r170336
parent 076da5bc
2011-02-20 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/44118
* g++.dg/template/crash105.C: New.
2011-02-19 Jason Merrill <jason@redhat.com>
* g++.dg/cpp0x/regress/no-elide1.C: New.
......
// PR c++/44118
template < typename > struct S;
template < typename > struct S < int >; // { dg-error "template" }
template < typename > struct S < int >
{
void f ();
};
void
f ()
{
S < int >::f (); // { dg-error "cannot call" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment