diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-03-16 19:16:25 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-03-16 19:16:25 +0000 |
commit | db2eae639d3b7ed61ceb56890b73168517ef57f1 (patch) | |
tree | 5d11c84a6d156510757fa57eadff9acb25f2f1db /test/CXX/expr/expr.unary/expr.unary.op/p6.cpp | |
parent | 1040c227efc6821cd39795206c178894470a1a48 (diff) |
Clean up our handling of template-ids that resolve down to a single
overload, so that we actually do the resolution for full expressions
and emit more consistent, useful diagnostics. Also fixes an IRGen
crasher, where Sema wouldn't diagnose a resolvable bound member
function template-id used in a full-expression (<rdar://problem/9108698>).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/expr/expr.unary/expr.unary.op/p6.cpp')
-rw-r--r-- | test/CXX/expr/expr.unary/expr.unary.op/p6.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp b/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp index 543a86d4e3..30f8c54919 100644 --- a/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp +++ b/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp @@ -29,8 +29,8 @@ bool b8 = !S(); //expected-error {{invalid argument type 'S'}} namespace PR8181 { - void f() { } - void f(char) { } - bool b = !&f; //expected-error {{cannot resolve overloaded function from context}} + void f() { } // expected-note{{candidate function}} + void f(char) { } // expected-note{{candidate function}} + bool b = !&f; //expected-error {{cannot resolve overloaded function 'f' from context}} } |