This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug c++/24983] Needs a warning?
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: gcc-bugzilla at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: 22 Nov 2005 04:56:18 +0100
- Subject: Re: [Bug c++/24983] Needs a warning?
- References: <bug-24983-6594@http.gcc.gnu.org/bugzilla/> <20051122030134.7152.qmail@sourceware.org>
"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