------- Comment #2 from paolo dot carlini at oracle dot com 2008-05-18 22:58 ------- In other terms, just add, after the declaration of struct A: const int A::N; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36261