------- Comment #6 from paolo dot carlini at oracle dot com 2009-11-19 02:16 ------- It doesn't have any definition, it does have a *declaration*. This is pretty basic C++, by the way. Just add out of class:
const size_t X::DEPENDENT_LENGTH_MASK; ... ... and everything will be fine. The compiler doesn't diagnose that, right, because the actual diagnosis, as for any undefined entity, eg, functions, happens only at link time, the linker tells you: as happens for functions, you could well have the definitions in another file. -- paolo dot carlini at oracle dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42101