Problems with ?: operator

Falk Hueffner falk@debian.org
Thu Dec 15 08:53:00 GMT 2005


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



More information about the Gcc mailing list