diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-30 23:27:23 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-30 23:27:23 +0000 |
commit | 576e98cc1e5133980630f1cbbc95522b7017d484 (patch) | |
tree | d4e6157dc2097e66b02df6aa58fbe71123d61361 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | f6e6057e92d58efde867c21b4ada7255dc687ce8 (diff) | |
download | bcm5719-llvm-576e98cc1e5133980630f1cbbc95522b7017d484.tar.gz bcm5719-llvm-576e98cc1e5133980630f1cbbc95522b7017d484.zip |
Improve our handling of the second step in a user-defined conversion
sequence. Previously, we weren't permitting the second step to call
copy constructors, which left user-defined conversion sequences
surprisingly broken.
Now, we perform overload resolution among all of the constructors, but
only accept the result if it makes the conversion a standard
conversion. Note that this behavior is different from both GCC and EDG
(which don't agree with each other, either); I've submitted a core
issue on the matter.
llvm-svn: 63450
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions