This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C++: const and typedef
- To: Guignon Thomas <guignon at asci dot fr>
- Subject: Re: C++: const and typedef
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 05 Jul 2000 17:26:39 -0300
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <00070515233000.00312@eole>
On Jul 5, 2000, Guignon Thomas <guignon@asci.fr> wrote:
> typedef char* toto;
> void test(const char* t);
In this case, `*t' is const but `t' isn't
> void titi::test(const toto t){
But here, `t' is const while `*t' isn't, so GCC's complaint is
justified.
--
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