llvm-project/clang/test/OpenMP/template-specialization.cpp
Zahira Ammarguellat 37340798cc Argument dependent lookup with class argument is recursing into base
classes that haven't been instantiated. This is generating an assertion
in DeclTemplate.h. Fix for Bug25668.
2020-12-01 10:33:12 -08:00

17 lines
276 B
C++

// RUN: %clang_cc1 -verify -fopenmp -fsyntax-only %s
// expected-no-diagnostics
template <typename T>
struct z {
static void aj() {
T f;
#pragma omp target map(f)
;
}
};
template <typename> class ar {};
template <int> struct as {};
template class z<ar<as<4>>>;