Commit c0b16a70 by Mark Mitchell Committed by Mark Mitchell

re PR c++/21369 (Template function definition rejected if function return type…

re PR c++/21369 (Template function definition rejected if function return type begins with 'struct')

	PR c++/21369
	* g++.dg/init/member1.C: Tweak error markers.

From-SVN: r105252
parent 49896738
2005-10-11 Mark Mitchell <mark@codesourcery.com>
PR c++/21369
* g++.dg/init/member1.C: Tweak error markers.
2005-10-11 Janis Johnson <janis187@us.ibm.com>
PR testsuite/24281
......@@ -11,7 +11,7 @@ template<int> struct B {};
template<typename T> struct C
{
static const int i = A<T>::i; // { dg-error "incomplete" }
static const int j = i;
static const int j = i; // { dg-error "constant" }
B<j> b; // { dg-error "not a valid template arg" }
};
......
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