
There are a few diagnostics that are incorrectly grouped under `-Wc++20-compat` instead of `-Wpre-c++20-compat`. I grepped for any remaining `-Wc++xy-compat` diagnostics, but they all seem to actually be about compatibility with C++XY. Fixes #138775.
6 lines
263 B
C++
6 lines
263 B
C++
// RUN: %clang_cc1 -triple x86_64-linux -fsyntax-only -frounding-math -verify %s
|
|
|
|
template <class b> b::a() {}
|
|
// expected-warning@-1 {{missing 'typename' prior to dependent type name 'b::a' is a C++20 extension}}
|
|
// expected-error@-2 {{expected unqualified-id}}
|