mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 10:26:06 +00:00

Summary: We don't know what context to use until the classification result is consumed by the parser, which could happen in a different semantic context. So don't build the expression that results from name classification until we get to that point and can handle it properly. This covers everything except C++ implicit class member access, which is a little awkward to handle properly in the face of the protected member access check. But it at least fixes all the currently-filed instances of PR43080. Reviewers: efriedma Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D68896 llvm-svn: 374826
11 lines
198 B
C++
11 lines
198 B
C++
// RUN: %clang_cc1 -emit-llvm-only %s
|
|
|
|
namespace PR43080 {
|
|
int f(int i) { return sizeof i<i; }
|
|
}
|
|
|
|
namespace PR42861 {
|
|
const unsigned long s = alignof(int);
|
|
void foo() { alignas(s) int j; }
|
|
}
|