From d202924db623cf8141f9984d38e84ed6656809a4 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 31 Jan 2013 03:11:12 +0000 Subject: Clarify the diagnostic for -Wnested-anon-types. llvm-svn: 174032 --- clang/lib/Sema/SemaDecl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/Sema/SemaDecl.cpp') diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 24dffc0299d..80543fd532b 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -3242,7 +3242,8 @@ Decl *Sema::BuildAnonymousStructOrUnion(Scope *S, DeclSpec &DS, // This is a popular extension, provided by Plan9, MSVC and GCC, but // not part of standard C++. Diag(MemRecord->getLocation(), - diag::ext_anonymous_record_with_anonymous_type); + diag::ext_anonymous_record_with_anonymous_type) + << (int)Record->isUnion(); } } else if (isa(*Mem)) { // Any access specifier is fine. -- cgit v1.2.3