This is the mail archive of the gcc@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]

Re: egcs / g++ conflicts c++ draft standard (i think)


> (Perhaps it is time for g++ to allow only 'static', or to at least
> warn about other uses like this).

egcs-2.91.45 gives me

a.ii:3: warning: ANSI C++ forbids initialization of const member `qtd'
a.ii:3: warning: making `qtd' static

I think this is pretty close to giving good diagnostic, except that it
should say "ISO C++" instead, or, given my locale, "DIN C++" :-)

Martin


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