[PATCH] D133088: [Clang] Fix wrong diagnostic for scope identifier with internal linkage
pmor via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 1 12:42:13 PDT 2022
pmor13 added a comment.
Note that this code:
int x;
void f(void)
{
extern int x = 1;
}
needs to produce:
error" declaration of block scope identifier with external linkage shall have no initializer
So, `err_block_extern_cant_init` needs to be updated too (I think).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133088/new/
https://reviews.llvm.org/D133088
More information about the cfe-commits
mailing list