This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in EGCS 1.1b (better than 1.0.3a though)
- To: Christopher Curtis <ccurtis at ee dot fit dot edu>
- Subject: Re: Bug in EGCS 1.1b (better than 1.0.3a though)
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 18 Sep 1998 01:17:51 +-300
- Cc: egcs-bugs at cygnus dot com
- References: <Pine.GSO.3.96.980917223704.16142E-100000@yacht.ee.fit.edu>
Christopher Curtis <ccurtis@ee.fit.edu> writes:
> #include <complex>
> template<class T> class MoreComplex : public complex<T> { private:
> static int References = 0; };
> int main( void ) { MoreComplex<double> Object; }
> 1.0.3a gave linker errors (with additional code).
On what platform? I can't reproduce the link error in 1.0.3. With
1.1, I get the following correct error messages:
/home/msc/oliva/test.cc:6: ANSI C++ forbids in-class initialization of non-const static member `References'
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil