Commit 8d08b2d7 by Mark Mitchell Committed by Mark Mitchell

re PR c++/26266 (Trouble with static const data members in template classes)

	PR c++/26266
	* g++.dg/template/static22.C: New test.
	* g++.dg/template/static23.C: New test.
	* g++.dg/template/static24.C: New test.
	* g++.dg/template/non-dependent13.C: New test.
	* g++.dg/init/member1.C: Tweak error markers.

From-SVN: r111230
parent d174af6c
......@@ -5,6 +5,7 @@
* g++.dg/template/static23.C: New test.
* g++.dg/template/static24.C: New test.
* g++.dg/template/non-dependent13.C: New test.
* g++.dg/init/member1.C: Tweak error markers.
2006-02-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
......@@ -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; // { dg-error "constant" }
static const int j = i;
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