From: Mark Mitchell Date: Sat, 18 Feb 2006 08:37:11 +0000 (+0000) Subject: re PR c++/26266 (Trouble with static const data members in template classes) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d08b2d786e93fffe4c6802239b6808680785bc9;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 137938c5f7f..b8ea9f07cae 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/g++.dg/init/member1.C b/gcc/testsuite/g++.dg/init/member1.C index b5ffbd7bd39..aededf23e7b 100644 --- a/gcc/testsuite/g++.dg/init/member1.C +++ b/gcc/testsuite/g++.dg/init/member1.C @@ -11,7 +11,7 @@ template struct B {}; template struct C { static const int i = A::i; // { dg-error "incomplete" } - static const int j = i; // { dg-error "constant" } + static const int j = i; B b; // { dg-error "not a valid template arg" } };