diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2023-02-03 08:49:34 -0800 |
---|---|---|
committer | Jordan Rupprecht <rupprecht@google.com> | 2023-02-03 08:49:34 -0800 |
commit | 74ce297045bac4bc475b8e762d2a1ea19bb16d3c (patch) | |
tree | 7e2bf2525d3efb5220ef21dad03f85eab3f71f27 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 256fa21dde67792a773fe6f3bc432dae3e8e8624 (diff) | |
download | llvm-74ce297045bac4bc475b8e762d2a1ea19bb16d3c.zip llvm-74ce297045bac4bc475b8e762d2a1ea19bb16d3c.tar.gz llvm-74ce297045bac4bc475b8e762d2a1ea19bb16d3c.tar.bz2 |
Revert "[Clang] Implement Change scope of lambda trailing-return-type"
This reverts commit d708a186b6a9b050d09558163dd353d9f738c82d (and typo fix e4bc9898ddbeb70bc49d713bbf863f050f21e03f). It causes a compilation error for this:
```
struct StringLiteral {
template <int N>
StringLiteral(const char (&array)[N])
__attribute__((enable_if(N > 0 && N == __builtin_strlen(array) + 1,
"invalid string literal")));
};
struct Message {
Message(StringLiteral);
};
void Func1() {
auto x = Message("x"); // Note: this is fine
// Note: "xx\0" to force a different type, StringLiteral<3>, otherwise this
// successfully builds.
auto y = [&](decltype(Message("xx"))) {};
// ^ fails with: repro.cc:18:13: error: reference to local variable 'array'
// declared in enclosing function 'StringLiteral::StringLiteral<3>'
(void)x;
(void)y;
}
```
More details posted to D124351.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions