Skip to content

Commit 99e26ef

Browse files
committed
Fix merge
1 parent 4650a53 commit 99e26ef

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

clang/include/clang/AST/DeclCXX.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3507,15 +3507,15 @@ class TypeAliasDecl : public TypedefNameDecl {
35073507
SourceLocation EllipsisLoc;
35083508

35093509
TypeAliasDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
3510-
SourceLocation IdLoc, IdentifierInfo *Id, TypeSourceInfo *TInfo,
3510+
SourceLocation IdLoc, const IdentifierInfo *Id, TypeSourceInfo *TInfo,
35113511
SourceLocation EllipsisLoc)
35123512
: TypedefNameDecl(TypeAlias, C, DC, StartLoc, IdLoc, Id, TInfo),
35133513
Template(nullptr), EllipsisLoc(EllipsisLoc) {}
35143514

35153515
public:
35163516
static TypeAliasDecl *Create(ASTContext &C, DeclContext *DC,
35173517
SourceLocation StartLoc, SourceLocation IdLoc,
3518-
IdentifierInfo *Id, TypeSourceInfo *TInfo,
3518+
const IdentifierInfo *Id, TypeSourceInfo *TInfo,
35193519
SourceLocation EllipsisLoc);
35203520
static TypeAliasDecl *CreateDeserialized(ASTContext &C, unsigned ID);
35213521

clang/lib/AST/Decl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5564,7 +5564,7 @@ TypedefDecl *TypedefDecl::CreateDeserialized(ASTContext &C, unsigned ID) {
55645564

55655565
TypeAliasDecl *TypeAliasDecl::Create(ASTContext &C, DeclContext *DC,
55665566
SourceLocation StartLoc,
5567-
SourceLocation IdLoc, IdentifierInfo *Id,
5567+
SourceLocation IdLoc, const IdentifierInfo *Id,
55685568
TypeSourceInfo *TInfo,
55695569
SourceLocation EllipsisLoc) {
55705570
return new (C, DC)

clang/test/SemaCXX/cxx2c-alias-packs.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ struct S {
2424
};
2525
template <typename... Ts>
2626
struct e1 {
27-
using a = S<Ts...>::...types;
28-
using b = S<Ts...>::...types::a;
29-
using ...c = S<Ts...>::types;
30-
using ...d = S<Ts...>::types::a;
31-
S<Ts...>::...types e;
32-
S<Ts...>::...types::a f;
27+
using a = S<Ts...>::...types; // expected-error {{declaration type contains unexpanded parameter pack 'types'}}
28+
using b = S<Ts...>::...types::a; // expected-error {{declaration type contains unexpanded parameter pack 'types'}}
29+
using ...c = S<Ts...>::types; // expected-error {{'typename S<Ts...>::types' does not contain an unexpanded pack}}
30+
using ...d = S<Ts...>::types::a; // expected-error {{'typename S<Ts...>::types::a' does not contain an unexpanded pack}}
31+
S<Ts...>::...types e; // expected-error {{data member type contains unexpanded parameter pack 'types'}}
32+
S<Ts...>::...types::a f; // expected-error {{data member type contains unexpanded parameter pack 'types'}}
3333
};
3434

3535
template <typename... Ts>

0 commit comments

Comments
 (0)