[cfe-dev] help - Undefined behavior
Robinson, Paul via cfe-dev
cfe-dev at lists.llvm.org
Fri Jan 1 13:10:45 PST 2016
> -----Original Message-----
> From: cfe-dev [mailto:cfe-dev-bounces at lists.llvm.org] On Behalf Of user
> user via cfe-dev
> Sent: Friday, January 01, 2016 6:52 AM
> To: cfe-dev at lists.llvm.org
> Subject: [cfe-dev] help - Undefined behavior
>
> Hi ! help please .
>
> if((result = f()) == 0) { ... }
>
> is Undefined behavior ?
It depends on factors that your example does not describe.
For example, if f() does not return a value, then it is
undefined behavior.
--paulr
More information about the cfe-dev
mailing list