------- Comment #2 from redi at gcc dot gnu dot org 2010-08-19 14:53 ------- N.B this has nothing to do with arrays, the following fails for the same reason:
template<class T> void func (T&); static struct { int i; } arr; void test() { func(arr); } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45341