[Bug c++/30745] Undefined static const
hans dot buchmann at fhso dot ch
gcc-bugzilla@gcc.gnu.org
Sat Feb 10 12:17:00 GMT 2007
------- Comment #2 from hans dot buchmann at fhso dot ch 2007-02-10 12:17 -------
Inserting the line
const unsigned Class::MAX_LEN=16;
results in the message
const-test.cc:13: error: duplicate initialization of 'Class::MAX_LEN'
When I place the declaration outside the class the Symbol MAX_LEN is
defined:
00000000 r MAX_LEN
00000028 T Class::Class(unsigned int)
00000000 T Class::Class(unsigned int)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30745
More information about the Gcc-bugs
mailing list