This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31226] static const volatile variables don't get linked correctly
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2007 18:18:18 -0000
- Subject: [Bug c++/31226] static const volatile variables don't get linked correctly
- References: <bug-31226-14257@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from bangerth at dealii dot org 2007-03-16 18:18 -------
(In reply to comment #1)
> You forgot to declare it, you only defined it.
In fact the other way around: you declared (and initialized) the variable
but you forgot to give a definition (which asks the compiler to actually
allocate space for it).
W.
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at dealii dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31226