mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 16:36:46 +00:00

Apparently TransformDecl in TreeTransform can be called with a nullptr for a Decl, so my casts were illegal. The fix here is to add an early exit to my TransformDecl.
8 lines
175 B
C++
8 lines
175 B
C++
// RUN: %clang_cc1 -std=c++20 -verify %s
|
|
// expected-no-diagnostics
|
|
struct s {
|
|
template<typename T>
|
|
requires requires(T x) { x.g(); }
|
|
friend void f(T);
|
|
};
|