c++ test

Alexandre Oliva aoliva@redhat.com
Fri Nov 10 11:23:00 GMT 2000


On Nov 10, 2000, Eric Christopher <echristo@cygnus.com> wrote:

> Alexandre Oliva wrote:

>> On Nov  9, 2000, Eric Christopher <echristo@cygnus.com> wrote:
>> > test.cc:17: passing `const DATA' as `this' argument of `DATA::~DATA ()'
>> > discards qualifiers

>> But this error message looks right to me, unless there's some rule I
>> don't remember that allows a destructor to be *explicitly* called on a
>> const object (it can certainly be called *implicitly*).

> Yep.  I found it not too long ago (at least that's how I'm interpreting
> it ;)

[snip]

> Looks good to me yes?

For some reason, I thought these passages applied only to implicit
invocations.  I guess the testcase is ok, then.

-- 
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-bugs mailing list