From daa4d45c0aa771b999df714a07234979e7746f83 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 14 Apr 2015 13:53:53 +0000 Subject: 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. llvm-svn: 234886 --- .../meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libcxx/test/std/utilities') diff --git a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp index b46a4d6bcc6..d33019bcba9 100644 --- a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp @@ -49,6 +49,9 @@ struct E }; #endif +template +struct X { T t; }; + int main() { test_is_assignable (); @@ -67,4 +70,7 @@ int main() test_is_not_assignable (); test_is_not_assignable (); test_is_not_assignable (); + +// pointer to incomplete template type + test_is_assignable*&, X*> (); } -- cgit v1.2.3