Fix %select numbering confusion between diagnostic and Diag call.

llvm-svn: 194281
This commit is contained in:
Richard Smith 2013-11-08 21:51:24 +00:00
parent 5eb9bfc863
commit 68b1453ce0
2 changed files with 2 additions and 1 deletions

View File

@ -1249,7 +1249,7 @@ void Parser::ParseClassSpecifier(tok::TokenKind TagTokKind,
<< (TemplateInfo.Kind == ParsedTemplateInfo::ExplicitInstantiation)
<< (TagType == DeclSpec::TST_class? 0
: TagType == DeclSpec::TST_struct? 1
: TagType == DeclSpec::TST_interface? 2
: TagType == DeclSpec::TST_union? 2
: 3)
<< Name
<< SourceRange(LAngleLoc, RAngleLoc);

View File

@ -116,6 +116,7 @@ void f2() {
// PR3844
template <> struct S<int> { }; // expected-error{{explicit specialization of non-template struct 'S'}}
template <> union U<int> { }; // expected-error{{explicit specialization of non-template union 'S'}}
namespace PR6184 {
namespace N {