This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
another bug that might have been filed already
- To: gcc-bugs at gcc dot gnu dot org
- Subject: another bug that might have been filed already
- From: Dima Volodin <dvv at dvv dot org>
- Date: Mon, 17 Apr 2000 23:23:26 -0400
- Organization: Huh?
///////////////// cut /////////////////
template<typename T>
class C {
static const int N = 1;
static int a [N];
};
template <typename T>
int C<T>::a [C<T>::N] = {0};
///////////////// cut /////////////////
GNU C++ version 2.96 20000410 (experimental) (i586--solaris2.7) compiled
by GNU
C version 2.95.2 19991024 (release).
options passed:
options enabled: -fpeephole -ffunction-cse -fkeep-static-consts
-fpcc-struct-return -fsched-interblock -fsched-spec -fexceptions
-fnew-exceptions -fcommon -fgnu-linker -fargument-alias -fident
-fmath-errno -m80387 -mhard-float -mno-soft-float -mieee-fp
-mfp-ret-in-387
11.cc:8: conflicting types for `int C<T>::a[C<T>::N]'
11.cc:4: previous declaration as `int C<T>::a[C<T>::N]'
Cheers!
Dima