Chuanqi Xu b4ed102b1e
[C++20] [Modules] Avoid infinite loop when checking TU local exposures (#174704)
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.
2026-01-07 07:24:13 +00:00

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);
}