This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3735: g++ 3.0 conditional ? operator problem
- From: nathan at gcc dot gnu dot org
- To: SALevin at lgc dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 15 Dec 2001 18:16:37 -0000
- Subject: Re: c++/3735: g++ 3.0 conditional ? operator problem
- Reply-to: nathan at gcc dot gnu dot org, SALevin at lgc dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: g++ 3.0 conditional ? operator problem
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Sat Dec 15 10:16:37 2001
State-Changed-Why:
not a bug.
see [2.13.4]/1 for the type of a string literal
see [4.2]/2 for how one can be converted to char *
'cond ? "a" : "b" ' is not a string literal
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3735