Issue | 151242 |
---|---|
Summary | [clang] Accepts-invalid (?) in discarded statement with return type deduction |
Labels | clang |
Assignees | |
Reporter | efriedma-quic |
Consider: ``` auto f() { if constexpr (false) return; return 3; } ```
Missing error on the first return statement. I think this violates [stmt.return]p2? Or maybe it's an oversight in the wording.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs