mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 15:56:40 +00:00

Based on the changes introduced by 15361a21e01026e74cb17011b702c7d1c881ae94 it looks like C++17 compatibility diagnostic should have been checking getContainedAutoType(). This fixes: https://github.com/llvm/llvm-project/issues/57369 https://github.com/llvm/llvm-project/issues/57643 https://github.com/llvm/llvm-project/issues/57793 Differential Revision: https://reviews.llvm.org/D132990
11 lines
243 B
C++
11 lines
243 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 -Wpre-c++17-compat %s
|
|
// expected-no-diagnostics
|
|
|
|
namespace GH57362 {
|
|
template <int num>
|
|
class TemplateClass {};
|
|
|
|
template <TemplateClass nttp> // ok, no diagnostic expected
|
|
void func() {}
|
|
}
|