http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30745
Andreas Schwab changed:
What|Removed |Added
CC||rarrum at gmail dot com
--- Comment #7 f
--- Comment #6 from paolo dot carlini at oracle dot com 2008-05-19 00:10
---
*** Bug 36261 has been marked as a duplicate of this bug. ***
--
paolo dot carlini at oracle dot com changed:
What|Removed |Added
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-08-23 16:34 ---
*** Bug 33161 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
---
--- Comment #4 from schwab at suse dot de 2007-05-12 09:15 ---
*** Bug 31904 has been marked as a duplicate of this bug. ***
--
schwab at suse dot de changed:
What|Removed |Added
-
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-02-10 21:12 ---
The definition have to be not inialized if it was already initialized in the
declaration
The declaration is the one which is inside the class, the definition which is
the one which defines the memory space is the on
--- 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 MA
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-02-09 14:52 ---
This is not a bug, you still need a definition of the static const variable.
You just have a declaration.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--