swote-git wrote:

@Endilll Thanks for pointing out CWG 3017.
"Test 2" is testing exactly the same case as the CWG 3017 example:

```c
// Test 2: Comma in conditional expression
// expected-error@+1 {{comma operator in operand of #if}}
#if 1 ? 1, 0 : 3
#endif
```

Should I add a comment referencing CWG 3017 to make this connection explicit?

https://github.com/llvm/llvm-project/pull/155570
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to