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:
Marshall Clow
2015-04-14 13:53:53 +00:00
parent 66302c650b
commit 3a4964aef3
2 changed files with 7 additions and 1 deletions

View File

@@ -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>*> ();
}