Code that worked in gcc-2.95.2 but not in 2.96...
Alexandre Oliva
aoliva@redhat.com
Mon Sep 18 01:33:00 GMT 2000
On Sep 18, 2000, Benjamin Scherrey <scherrey@switchco.com> wrote:
> class Default : public exception
> {
> static const char* defaulttext;
This is a static data member.
> const char* defaulttext = "Default exception!";
But this is the kind of thing one may keep hours staring at the code
without noticing. You didn't mean to define a global variable here,
did you? :-)
Make it `Default::defaulttext' and it should work.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
More information about the Gcc
mailing list