https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100649
--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > Confirmed. Compiled without errors with GCC 7. The error is properly issued in C++11 mode (-std=c++11): t.cpp: In member function 'void B<T>::foo(const A<32>&)': t.cpp:12:23: error: 'mesg' is not a constant expression 12 | A<2 + mesg.size()> local_mesg; | ^