[Bug c++/45082] Static const signed int class member causes undefined symbol.

rwitmer at xmission dot com gcc-bugzilla@gcc.gnu.org
Mon Jul 26 15:59:00 GMT 2010



------- Comment #2 from rwitmer at xmission dot com  2010-07-26 15:59 -------
I agree with your assessment.  Adding const int myclass::BUFF_SIZE; resolves
the issue. 

The bug/feature may be that re-typing BUFF_SIZE to static const unsigned int
allows the compiler to not report a problem.  It doesn't require a const
unsigned myclass::BUFF_SIZE; anywhere and still compiles when it shouldn't.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45082



More information about the Gcc-bugs mailing list