diff options
author | Mariya Podchishchaeva <mariya.podchishchaeva@intel.com> | 2024-12-12 12:19:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 12:19:48 +0100 |
commit | 1d65c35ce16f1bc340649ac8319b34c833e23a1f (patch) | |
tree | 40cc611e33421ba7c4916fac66c04639c2d22b76 /clang/lib/Sema/DeclSpec.cpp | |
parent | a480d5172215ce8e49b492e5c0295de1f397954d (diff) | |
download | llvm-1d65c35ce16f1bc340649ac8319b34c833e23a1f.zip llvm-1d65c35ce16f1bc340649ac8319b34c833e23a1f.tar.gz llvm-1d65c35ce16f1bc340649ac8319b34c833e23a1f.tar.bz2 |
[clang] Reject `_Complex _BitInt` (#119402)
The C standard doesn't require support for these types and Codegen for
these types is incorrect ATM.
See https://github.com/llvm/llvm-project/issues/119352
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
-rw-r--r-- | clang/lib/Sema/DeclSpec.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp index ee237ff..4764468 100644 --- a/clang/lib/Sema/DeclSpec.cpp +++ b/clang/lib/Sema/DeclSpec.cpp @@ -1343,8 +1343,7 @@ void DeclSpec::Finish(Sema &S, const PrintingPolicy &Policy) { S.getLocForEndOfToken(getTypeSpecComplexLoc()), " double"); TypeSpecType = TST_double; // _Complex -> _Complex double. - } else if (TypeSpecType == TST_int || TypeSpecType == TST_char || - TypeSpecType == TST_bitint) { + } else if (TypeSpecType == TST_int || TypeSpecType == TST_char) { // Note that this intentionally doesn't include _Complex _Bool. if (!S.getLangOpts().CPlusPlus) S.Diag(TSTLoc, diag::ext_integer_complex); |