c++/3735: g++ 3.0 conditional ? operator problem

nathan@gcc.gnu.org nathan@gcc.gnu.org
Sat Dec 15 10:29:00 GMT 2001


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



More information about the Gcc-bugs mailing list