From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d055dd2f0172279a X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-02-14 11:08:30 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!gw1.att.com!fnnews.fnal.gov!mp.cs.niu.edu!vixen.cso.uiuc.edu!peltz From: peltz@cerl.uiuc.edu (Steve Peltz) Newsgroups: comp.unix.osf.osf1 Subject: Re: Alpha compiler bug Date: 14 Feb 1995 19:08:30 GMT Organization: University Communications, Inc. Message-ID: <3hqv3e$qb2@vixen.cso.uiuc.edu> References: <3houb5$8cr@vixen.cso.uiuc.edu> NNTP-Posting-Host: medusa.cerl.uiuc.edu In article , Peter da Silva wrote: >In article <3houb5$8cr@vixen.cso.uiuc.edu>, >Steve Peltz wrote: >> Expression such as: >> (temp = a + b, temp * (a + b)) + (temp = c + d, temp * (c + d)) > >This is actually undefined behaviour for ANSI. All the comma operators >guarantee is that "temp = a + b" will be evaluated before "temp * (a + b)", >and similarly for the second expression. Is this true for an argument list as well? My actual problem occurred when I tried to pass the two subexpressions to a function, rather than add them together. Is there any way to force the order for something like this? This is actually a macro expansion, where in the general case it needs to look like a single expression (it might be a macro expansion, or it might be a function call). -- Steve Peltz tricorn@uiuc.edu