| delorie.com/archives/browse.cgi | search |
| Date: | Fri, 11 Sep 92 22:40:09 CDT |
| From: | "George Jetson" <pynq AT midway DOT uchicago DOT edu> |
| To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
| Subject: | Statement expressions? |
As near as I can tell, from perusing the GCC documentation, the
following should be legal in GCC 2.2.2:
main()
{
int i = 5;
i = { if (i < 3) i = 19; 9; } ;
printf("i = %d\n",i);
}
However, it does not compile under DJGPP 1.08
(The result, BTW, should be that i == 9 regardless of the original value)
Am I missing something?
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |