Per C++ [over.match.copy]p1, direct-initialization of a reference can
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 2 Jul 2018 23:25:22 +0000 (23:25 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 2 Jul 2018 23:25:22 +0000 (23:25 +0000)
commitb368ea865f96071e827c6151073e153c4e45171d
tree2d5fe37d1872efe050a9e2183cbb3249aa873687
parent50615c72b4d12f9c61b725da04d4349e793ac889
Per C++ [over.match.copy]p1, direct-initialization of a reference can
only invoke converting constructors of the reference's underlying type.

llvm-svn: 336153
clang/lib/Sema/SemaInit.cpp
clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5.cpp