]> granicus.if.org Git - clang/commit
When collecting types for built-in candidates, make arrays decay to pointers. Otherwi...
authorSebastian Redl <sebastian.redl@getdesigned.at>
Thu, 5 Nov 2009 16:36:20 +0000 (16:36 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Thu, 5 Nov 2009 16:36:20 +0000 (16:36 +0000)
commita65b55142bd8e8c94f371bb056d8f58f11de220f
tree69c20e7c16490349645185a27ef561aee13d2a06
parentb258d8f961212490800f96b97275dd6961ca1cc0
When collecting types for built-in candidates, make arrays decay to pointers. Otherwise, subscripting an array leads to no candidates at all. Fixes PR5360.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86140 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/SemaCXX/overloaded-operator.cpp