[Bug c++/17445] too few template-parameter-lists

2005-07-28 Thread bangerth at dealii dot org
--- 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

[Bug c++/17445] too few template-parameter-lists

2005-07-28 Thread owen at titan dot com
--- 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

[Bug c++/17445] too few template-parameter-lists

2005-04-24 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug c++/17445] too few template-parameter-lists

2005-04-24 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug c++/17445] too few template-parameter-lists

2005-04-24 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug c++/17445] too few template-parameter-lists

2005-04-24 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug c++/17445] too few template-parameter-lists

2005-04-19 Thread bangerth at dealii dot org
--- 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

[Bug c++/17445] too few template-parameter-lists

2005-04-18 Thread leslie dot barnes at amd dot com
--- 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

[Bug c++/17445] too few template-parameter-lists

2005-04-18 Thread bangerth at dealii dot org
--- 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

[Bug c++/17445] too few template-parameter-lists

2005-04-18 Thread leslie dot barnes at amd dot com
--- 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

[Bug c++/17445] too few template-parameter-lists

2005-04-18 Thread giovannibajo at libero dot it
--- 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

[Bug c++/17445] too few template-parameter-lists

2005-04-17 Thread leslie dot barnes at amd dot com
--- 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++