forked from OSchip/llvm-project
Fix %select numbering confusion between diagnostic and Diag call.
llvm-svn: 194281
This commit is contained in:
parent
5eb9bfc863
commit
68b1453ce0
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue