Qualify an internal call in is_assignable to prevent ADL lookup, which would 'complete' an type definition unnecessarily. Thanks to Richard Smith for the report.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@234886 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -49,6 +49,9 @@ struct E
|
||||
};
|
||||
#endif
|
||||
|
||||
template <typename T>
|
||||
struct X { T t; };
|
||||
|
||||
int main()
|
||||
{
|
||||
test_is_assignable<int&, int&> ();
|
||||
@@ -67,4 +70,7 @@ int main()
|
||||
test_is_not_assignable<void, const void> ();
|
||||
test_is_not_assignable<const void, const void> ();
|
||||
test_is_not_assignable<int(), int> ();
|
||||
|
||||
// pointer to incomplete template type
|
||||
test_is_assignable<X<D>*&, X<D>*> ();
|
||||
}
|
||||
|
Reference in New Issue
Block a user