This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with ?: operator
- From: Falk Hueffner <falk at debian dot org>
- To: Sulabh Nangalia <sulabh dot nangalia at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Thu, 15 Dec 2005 09:03:31 +0100
- Subject: Re: Problems with ?: operator
- References: <4ff8a2110512142331j2e7b1428i35d82acb071605bc@mail.gmail.com>
Sulabh Nangalia <sulabh.nangalia@gmail.com> writes:
> 5 < 10 ? a = 5 : a = 7; is giving error
> 15 < 10 ? a = 5 : a = 7; is not giving any error
>
> why?
Because of a bug in gcc. It's been fixed in 4.0, though.
--
Falk