This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: confused by code in C++ parser
- To: "Zack Weinberg" <zackw at stanford dot edu>
- Subject: Re: confused by code in C++ parser
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 21 Jun 2001 03:18:52 -0300
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20010620131957.B12387@stanford.edu>
On Jun 20, 2001, "Zack Weinberg" <zackw@stanford.edu> wrote:
> Can someone please explain to me what c_build_string (formerly
> combine_strings) gets wrong about the type of a string constant for
> C++, and what the correct type is? Thanks.
I'm far from being an expert in our C++ front-end, but if I had to
guess, I'd think the problem is the C++ rule that string literals have
type const char[N], but they may implicitly decay to non-const char*.
--
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