[Bug c++/29645] undefined references to static const int members

2006-10-30 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2006-10-30 11:05 --- You need to provide a definition of X::a and X::b. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/29645] undefined references to static const int members

2006-10-30 Thread christian dot heinlein at uni-ulm dot de
--- Comment #2 from christian dot heinlein at uni-ulm dot de 2006-10-30 11:38 --- No! A static const int member which is only used as a compile time constant does not need a definition, if I understand the C++ standard correctly. (And in most cases, the code produced by GCC actually

[Bug c++/29645] undefined references to static const int members

2006-10-30 Thread christian dot heinlein at uni-ulm dot de
--- Comment #3 from christian dot heinlein at uni-ulm dot de 2006-10-30 11:41 --- *** Bug 29646 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29645

[Bug c++/29645] undefined references to static const int members

2006-10-30 Thread christian dot heinlein at uni-ulm dot de
--- Comment #4 from christian dot heinlein at uni-ulm dot de 2006-10-30 11:43 --- *** Bug 29647 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29645

[Bug c++/29645] undefined references to static const int members

2006-10-30 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2006-10-30 12:28 --- *** This bug has been marked as a duplicate of 25220 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added