------- Comment #3 from jakub at gcc dot gnu dot org 2010-09-07 22:45 ------- Reproduced with: void bar (unsigned char *);
template <int N> struct S { static const int k = 6; }; template <int N> const int S<N>::k; template <int N> void foo () { const int i = S<N>::k; unsigned char a[i]; bar (a); } void bar () { foo<64> (); } -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2010-09-07 21:59:46 |2010-09-07 22:45:05 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45588