another bug that might have been filed already

Dima Volodin dvv@dvv.org
Mon Apr 17 20:23:00 GMT 2000


///////////////// 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


More information about the Gcc-bugs mailing list