Commit 5cb0baad by Andrew Pinski Committed by Andrew Pinski

re PR c++/18470 (array bound rejected as non-constant in template)

2005-02-09  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/18470
        * g++.dg/template/static12.C: New test.

From-SVN: r94789
parent 88e95ee3
2005-02-09 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/18470
* g++.dg/template/static12.C: New test.
2005-02-09 Mark Mitchell <mark@codesourcery.com>
PR c++/19787
......
// PR c++/18470
template<typename> struct A
{
static const int i=1;
};
template<typename T> struct B : A<T>
{
using A<T>::i;
char s[i]; // fails
char t[A<T>::i]; // compiles
};
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