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 | 89f3cd5c1521205f977c8d80438aef063742b7bb (patch) | |
tree | 7b466e1f751daedbaede24038068985a8655f141 /clang/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp | |
parent | 5a4a0f75d463ef58cd1f66fd2a83d1d4a4f7140d (diff) | |
download | bcm5719-llvm-89f3cd5c1521205f977c8d80438aef063742b7bb.tar.gz bcm5719-llvm-89f3cd5c1521205f977c8d80438aef063742b7bb.zip |
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>).
llvm-svn: 127747
Diffstat (limited to 'clang/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp')
-rw-r--r-- | clang/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp b/clang/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp index 543a86d4e35..30f8c549195 100644 --- a/clang/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp +++ b/clang/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}} } |