This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: '?:' bug in C++? (gcc version 2.95)
- To: Michael Rosenbruch <Rosenbruch at bfw-online dot de>
- Subject: Re: '?:' bug in C++? (gcc version 2.95)
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 03 Aug 1999 04:26:01 -0300
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <Pine.LNX.4.05.9908021728450.28463-200000@lar.bfw.de>
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