Article View: comp.std.c
Article #4236Re: Comma operator in constant expression
From: Alexsander Krotoff
Date: Wed, 18 Oct 1995 15:06
Date: Wed, 18 Oct 1995 15:06
21 lines
1147 bytes
1147 bytes
Jens M Andreasen (jens-and@dsv.su.se) wrote: : On 16 Oct 1995, Paul Long wrote: : > Is an implementation required to generate a diagnostic for this declaration? : > : > static int i = 1 ? 3 : (1, 2); : After parsing your fancy expression, the compiler ends up with something : like: static i = 3; : Looks legal to me. Not, after constant expression evaluation it is 3, but after parsing in is an expression with coma operator. So it looks illegal to me. -- Alexander Krotoff <krotoff@such.srcc.msu.su> Research Computer Center [Moscow]939-2638 Moscow State University MGU, SRCC k316. GZ B-733r.
Technical Details
Message-ID:
<463569$f9a@alpha.phys.msu.su>Path:
arc1-ca.pugleaf.net!boy.nmd.msu.ru!krotoffReferences:
<45uevf$d99@news0.rain.rg.net> <Pine.ULT.3.91.951017124752.2343A-100000@mars.dsv.su.se>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!boy.nmd.msu.ru!krotoff From: krotoff@boy.nmd.msu.ru (Alexsander Krotoff) Newsgroups: comp.std.c Subject: Re: Comma operator in constant expression Date: 18 Oct 1995 15:06:49 GMT Organization: Research Computer Center, Moscow State University Message-ID: <463569$f9a@alpha.phys.msu.su> References: <45uevf$d99@news0.rain.rg.net> <Pine.ULT.3.91.951017124752.2343A-100000@mars.dsv.su.se> Reply-To: krotoff@such.srcc.msu.su NNTP-Posting-Host: boy.nmd.msu.ru X-Newsreader: TIN [version 1.2 PL2]