]> granicus.if.org Git - clang/commit
When we are performing copy initialization of a class type via its
authorDouglas Gregor <dgregor@apple.com>
Sat, 24 Apr 2010 20:54:38 +0000 (20:54 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 24 Apr 2010 20:54:38 +0000 (20:54 +0000)
commitd1a272204cef9304df3930d94f66713b05db27d6
tree725d0db5d5a84300d024524d465bef8a68cd7ee5
parent564618f782b9f6d373f789d8cf24943fd345904d
When we are performing copy initialization of a class type via its
copy constructor, suppress user-defined conversions on the
argument. Otherwise, we can end up in a recursion loop where the
bind the argument of the copy constructor to another copy constructor call,
whose argument is then a copy constructor call...

Found by Boost.Regex which, alas, still isn't building.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102269 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
test/SemaCXX/conditional-expr.cpp
test/SemaCXX/conversion-function.cpp
test/SemaCXX/overload-call.cpp