This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15935] Defining static [const] member variables of template class
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jun 2004 13:24:57 -0000
- Subject: [Bug c++/15935] Defining static [const] member variables of template class
- References: <20040611084936.15935.Rainer.Bensch@rsd.rohde-schwarz.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-06-17 13:24 -------
The reason weak symbols appear here is that if your OS _does_ support weak
symbols, the definition of the template member can appear in a header
file. However, if you don't have weak symbol support, then this would
lead to multiple symbol definition errors, so one has to instantiate
these variables one by one in some implementation file.
Does the situation improve with newer versions of gcc? And what OS are you
actually on?
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15935