egcs-1.1, Internal compiler error 109
Alexandre Oliva
oliva@dcc.unicamp.br
Wed Dec 9 07:40:00 GMT 1998
On Dec 9, 1998, <djf95@aber.ac.uk> wrote:
> g++ -Wall -c temp.cpp
> gives:
> temp.cpp:6: Internal compiler error 109.
> class input_traits { public: static const string L_EOFIELD("\t ,");
The latest development snapshots say:
t.cc:6: in-class initialization of static data member of non-integral type `const string'
According to the C++ Standard, you can only initialize integral
members within the class body. Others must be initialized in
namespace scope, like this:
const string input_traits::L_EOFIELD("\t ,");
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list