This is the mail archive of the gcc-bugs@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: '?:' bug in C++? (gcc version 2.95)


On Aug  3, 1999, Michael Rosenbruch <Rosenbruch@bfw-online.de> wrote:

> The documentation of ?: (condition?: statement) is very vague about being
> defined in c++

C++ does support the ternary operator, but allowing the user to omit
the second operand is a gcc/g++ extension, that causes a warning if
you compile with -ansi -pedantic.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them


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