shafik added inline comments.
================
Comment at: clang/test/AST/Interp/loops.cpp:9
+
+namespace WhileLoop {
+ constexpr int f() {
----------------
infinite loop w/o a side effect are undefined behavior and so should be
ill-formed and generate a diagnostic e.g. `while(1);`, so we should check these
cases.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135433/new/
https://reviews.llvm.org/D135433
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits