[Bug c++/11585] New: static template member definition fails
mueller at kde dot org
gcc-bugzilla@gcc.gnu.org
Sat Jul 19 00:00:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list