--- Additional Comments From bangerth at dealii dot org 2005-07-28 19:43
---
I believe you can't.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17445
--- Additional Comments From owen at titan dot com 2005-07-28 18:47 ---
>From Wolfgang Bangerth:
You need to write:
template <> std::map MyType::m_map
= std::map();
My problem with this is that it requires that the static member support the copy
constructor. In my case, the static
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-25
04:12 ---
*** Bug 11930 has been marked as a duplicate of this bug. ***
--
What|Removed |Added
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-25
04:12 ---
*** Bug 14891 has been marked as a duplicate of this bug. ***
--
What|Removed |Added
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-25
04:11 ---
*** Bug 11585 has been marked as a duplicate of this bug. ***
--
What|Removed |Added
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-25
04:09 ---
*** Bug 21200 has been marked as a duplicate of this bug. ***
--
What|Removed |Added
--- Additional Comments From bangerth at dealii dot org 2005-04-19 14:08
---
Why? This code as always wrong. It has nothing to do with gcc3.4.x.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17445
--- Additional Comments From leslie dot barnes at amd dot com 2005-04-19
00:02 ---
(In reply to comment #6)
> This code has at least two bugs:
>
> template class MyType;
> template <> std::map MyType::m_map;
>
> First, the instantiation must come *after* the definition of the stat
--- Additional Comments From bangerth at dealii dot org 2005-04-18 20:16
---
This code has at least two bugs:
template class MyType;
template <> std::map MyType::m_map;
First, the instantiation must come *after* the definition of the static
member.
Second, the definition you tho
--- Additional Comments From leslie dot barnes at amd dot com 2005-04-18
13:37 ---
(In reply to comment #4)
> A segfault in GCC is always a bug, even if the code is wrong. Would you
> please
> open a new bugreport about it?
Sorry, I wasn't clear. The binary seg faults, not the compi
--- Additional Comments From giovannibajo at libero dot it 2005-04-18
09:08 ---
A segfault in GCC is always a bug, even if the code is wrong. Would you please
open a new bugreport about it?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17445
--- Additional Comments From leslie dot barnes at amd dot com 2005-04-18
06:38 ---
(In reply to comment #2)
> You want:
> template<>
> MyType list;
> char *MyType::name = "Hello\n";
The following code seg faults with g++ 3.4.3. If I remove the "template <>",
it won't compile. On g++
12 matches
Mail list logo