This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11585] New: static template member definition fails
- From: "mueller at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jul 2003 00:00:46 -0000
- Subject: [Bug c++/11585] New: static template member definition fails
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11585
Summary: static template member definition fails
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mueller at kde dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
Hi,
this testcase stopped compiling with current mainline:
=== Cut ===
template<typename T> class A { static int n; };
int A<int>::n = 0;
=== Cut ===
$ g++ -Wall -c templ.cc
templ.cc:2: error: too few template-parameter-lists
templ.cc:2: error: expected `,' or `;'
above compiles fine with any older gcc version. I don't see what could be wrong
with it, therefore I assume its a compiler bug.