[all-commits] [llvm/llvm-project] 5901d4: [C] Disallow declarations where a statement is req...
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Tue May 28 11:55:43 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5901d4005f015a46185ddc080038c1a3db3fa2c7
https://github.com/llvm/llvm-project/commit/5901d4005f015a46185ddc080038c1a3db3fa2c7
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2024-05-28 (Tue, 28 May 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Parse/Parser.h
M clang/lib/Parse/ParseStmt.cpp
M clang/test/C/C99/block-scopes.c
A clang/test/Parser/decls.c
M clang/test/SemaOpenACC/parallel-loc-and-stmt.c
Log Message:
-----------
[C] Disallow declarations where a statement is required (#92908)
This fixes a regression introduced in
8bd06d5b65845e5e01dd899a2deb773580460b89 where Clang began to accept a
declaration where a statement is required. e.g.,
```
if (1)
int x; // Previously accepted, now properly rejected
```
Fixes #92775
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list