This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Code that worked in gcc-2.95.2 but not in 2.96...
- To: scherrey at proteus-tech dot com
- Subject: Re: Code that worked in gcc-2.95.2 but not in 2.96...
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 18 Sep 2000 05:33:40 -0300
- Cc: GCC Developers List <gcc at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <39C5B323.2D1A14B@switchco.com>
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