String literals question/bug

Alexandre Oliva oliva@dcc.unicamp.br
Wed Mar 31 23:54:00 GMT 1999


On Mar 23, 1999, "Martin v. Loewis" <loewis@informatik.hu-berlin.de> wrote:

>> I asked a similar question on comp.std.c++ and they said that the
>> questionable lines are in fact not legal C++, but certainly the last
>> two calls of g must both either be correct or be in error, so EGCS
>> definitely has a problem there.
>> 
>> For what it's worth, DDD (the Data Display Debugger) fails to compile
>> under EGCS because of various instances of code like the above.

> I'd say egcs is 'mostly' right, due to an obscure feature of standard
> C++. [conv.array]/2 reads

But I agree there's a real bug because, although (a?"b":"c") does not
compile, as expected, (true?"b":"c") does.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Brasil
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,egcs.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists




More information about the Gcc-bugs mailing list