[Bug c++/24983] Needs a warning?

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Tue Nov 22 03:58:00 GMT 2005



------- Comment #4 from gdr at integrable-solutions dot net  2005-11-22 03:58 -------
Subject: Re:  Needs a warning?

"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| earth:~>~/ia32_linux_gcc3_0/bin/gcc t.cc
| t.cc:2: prototype for `void foo::f()' does not match any in class `foo'
| t.cc:1: candidate is: const void foo::f()
| earth:~>~/ia32_linux_gcc2_95//bin/gcc t.cc
| t.cc:2: new declaration `void foo::f()'
| t.cc:1: ambiguates old declaration `const void foo::f()'
| 
| 
| I say that 3.0.x is the best if it is what we should say then we have a
| regression.

We should say: 'const void' is not a valid type
and be done with it.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24983



More information about the Gcc-bugs mailing list