[cfe-dev] parentheses flag warning
Billy Araujo via cfe-dev
cfe-dev at lists.llvm.org
Mon May 18 06:53:07 PDT 2020
-Wparentheses
warns for line 3 but not for the ternary expression in line 2.
1 static void foo(int a, int b, int x) {
2 x = (x = 10) ? a : b;
3 if (x = 10) { x = a; } else { x = b; }
4 }
Is this a bug?
Regards,
Billy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200518/e4d7db20/attachment.html>
More information about the cfe-dev
mailing list