Close https://github.com/llvm/llvm-project/issues/174543 The root cause of the problem is that the recursion in the code pattern triggers infinite loop in the checking process for TU local exposure.
9 lines
151 B
C++
9 lines
151 B
C++
// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
|
|
// expected-no-diagnostics
|
|
export module m;
|
|
template < typename T >
|
|
void fun(T)
|
|
{
|
|
fun(9);
|
|
}
|