https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92576
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-11-19 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #0) > I think 'extern' is needed to stop the first line being a definition: > > template<typename T> extern constexpr bool var; > template<typename T> constexpr bool var = false; Actually extern const: template<typename T> extern const bool var; template<typename T> constexpr bool var = false;