Skip to content

Commit 7a111a6

Browse files
committed
[Clang] Duplicate diagnostics in C++20+ mode
1 parent 4b098e6 commit 7a111a6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

clang/test/SemaCXX/nested-name-spec.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
2+
3+
struct incomplete;
4+
incomplete::type var; // expected-error{{incomplete type 'incomplete' named in nested name specifier}}
5+
// expected-note@-2{{forward declaration of 'incomplete'}}
6+
7+
18
// RUN: %clang_cc1 -fsyntax-only -std=c++98 -verify -fblocks %s
29
namespace A {
310
struct C {

0 commit comments

Comments
 (0)