[all-commits] [llvm/llvm-project] 202191: [Clang] Diagnose jumps into statement expressions
cor3ntin via All-commits
all-commits at lists.llvm.org
Fri Jul 21 06:09:06 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 20219106060208f0c2f5d096eb3aed7b712f5067
https://github.com/llvm/llvm-project/commit/20219106060208f0c2f5d096eb3aed7b712f5067
Author: Corentin Jabot <corentinjabot at gmail.com>
Date: 2023-07-21 (Fri, 21 Jul 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/JumpDiagnostics.cpp
M clang/lib/Sema/SemaExpr.cpp
M clang/test/CXX/stmt.stmt/stmt.select/stmt.if/p2.cpp
M clang/test/Sema/asm-goto.cpp
M clang/test/Sema/scope-check.c
M clang/test/SemaCXX/constant-expression-cxx14.cpp
M clang/test/SemaObjC/scope-check.m
Log Message:
-----------
[Clang] Diagnose jumps into statement expressions
Such jumps are not allowed by GCC and allowing them
can lead to situations where we jumps into unevaluated
statements.
Fixes #63682
Reviewed By: aaron.ballman, #clang-language-wg
Differential Revision: https://reviews.llvm.org/D154696
More information about the All-commits
mailing list