This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

another bug that might have been filed already


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]