Skip to content

Commit 626252d

Browse files
committed
More fixes
1 parent 1f38dc2 commit 626252d

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

clang/lib/Sema/SemaTemplate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3508,7 +3508,7 @@ static QualType builtinCommonReferenceImpl(Sema &S,
35083508
// then the member typedef type denotes that type.
35093509
{
35103510
auto getXRef = [&](QualType T) {
3511-
static BuiltinTemplateDecl *Quals[12] = {
3511+
BuiltinTemplateDecl *Quals[12] = {
35123512
S.Context.get__clang_internal_xref_Decl(),
35133513
S.Context.get__clang_internal_xref_constDecl(),
35143514
S.Context.get__clang_internal_xref_volatileDecl(),

libcxx/include/__type_traits/common_reference.h

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
_LIBCPP_BEGIN_NAMESPACE_STD
3131

3232
template <class...>
33-
struct common_reference;
33+
struct _LIBCPP_NO_SPECIALIZATIONS common_reference;
3434

3535
template <class... _Types>
3636
using common_reference_t = typename common_reference<_Types...>::type;
@@ -130,15 +130,6 @@ struct __common_ref {};
130130

131131
// Note C: For the common_reference trait applied to a parameter pack [...]
132132

133-
template <class...>
134-
struct _LIBCPP_NO_SPECIALIZATIONS common_reference;
135-
136-
template <class... _Types>
137-
using common_reference_t = typename common_reference<_Types...>::type;
138-
139-
template <class, class, template <class> class, template <class> class>
140-
struct basic_common_reference {};
141-
142133
_LIBCPP_DIAGNOSTIC_PUSH
143134
# if __has_warning("-Winvalid-specialization")
144135
_LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Winvalid-specialization")

0 commit comments

Comments
 (0)