This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: confused by code in C++ parser


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]