Don't crash when binding a reference to a temporary pointer created from
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 15 Jan 2013 07:58:29 +0000 (07:58 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 15 Jan 2013 07:58:29 +0000 (07:58 +0000)
commit03d9393b4ab8ef1fe7c4fede24fd39d3d6706c22
tree6f48acafd15b33e3bbbadf25e03cf9c15b1825ba
parentb03f6c489a2f9de400f04b24041316e3bcc03337
Don't crash when binding a reference to a temporary pointer created from
resolving an overloaded function reference within an initializer list.
Previously we would try to resolve the overloaded function reference without
first stripping off the InitListExpr wrapper.

llvm-svn: 172517
clang/lib/Sema/SemaInit.cpp
clang/test/SemaCXX/cxx0x-initializer-references.cpp