From: Andrew Pinski Date: Thu, 10 Feb 2005 01:05:31 +0000 (+0000) Subject: re PR c++/18470 (array bound rejected as non-constant in template) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5cb0baadb8f181b707a90e2359156a0bb2a6e106;p=gcc.git re PR c++/18470 (array bound rejected as non-constant in template) 2005-02-09 Andrew Pinski PR c++/18470 * g++.dg/template/static12.C: New test. From-SVN: r94789 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ace4d02e9b8..210102d5896 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-02-09 Andrew Pinski + + PR c++/18470 + * g++.dg/template/static12.C: New test. + 2005-02-09 Mark Mitchell PR c++/19787 diff --git a/gcc/testsuite/g++.dg/template/static12.C b/gcc/testsuite/g++.dg/template/static12.C new file mode 100644 index 00000000000..73becab27fd --- /dev/null +++ b/gcc/testsuite/g++.dg/template/static12.C @@ -0,0 +1,13 @@ +// PR c++/18470 + +template struct A +{ + static const int i=1; +}; + +template struct B : A +{ + using A::i; + char s[i]; // fails + char t[A::i]; // compiles +};