diff --git a/clang/lib/AST/ByteCode/Compiler.cpp b/clang/lib/AST/ByteCode/Compiler.cpp index f7f4f713c787f..b9e22ebb7a41a 100644 --- a/clang/lib/AST/ByteCode/Compiler.cpp +++ b/clang/lib/AST/ByteCode/Compiler.cpp @@ -4991,8 +4991,8 @@ bool Compiler::visitCompoundStmt(const CompoundStmt *S) { template bool Compiler::visitDeclStmt(const DeclStmt *DS) { for (const auto *D : DS->decls()) { - if (isa(D)) + if (isa(D)) continue; const auto *VD = dyn_cast(D); diff --git a/clang/test/AST/ByteCode/literals.cpp b/clang/test/AST/ByteCode/literals.cpp index b75ca2b19a969..a80ee7ad84fc7 100644 --- a/clang/test/AST/ByteCode/literals.cpp +++ b/clang/test/AST/ByteCode/literals.cpp @@ -914,12 +914,18 @@ namespace TypeTraits { } #if __cplusplus >= 201402L +namespace SomeNS { + using MyInt = int; +} + constexpr int ignoredDecls() { static_assert(true, ""); struct F { int a; }; enum E { b }; using A = int; typedef int Z; + namespace NewNS = SomeNS; + using NewNS::MyInt; return F{12}.a; }