This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Problems with ?: operator


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


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