]> granicus.if.org Git - clang/commit
When type-checking a static cast (or the static_cast part of a C-style
authorDouglas Gregor <dgregor@apple.com>
Sat, 14 Nov 2009 03:27:21 +0000 (03:27 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 14 Nov 2009 03:27:21 +0000 (03:27 +0000)
commit19aeac6ea4897c542b21c9f53a0a51762d8ddf83
tree4d445080cc4c13dc824cd5380efe18f5afac6fb0
parentf79dced038c63572965c016b969cfa870670d16e
When type-checking a static cast (or the static_cast part of a C-style
cast) that is converting to a class type, enumerate its constructors
as in any other direct initialization. This ensures that we get the
proper conversion sequence.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88751 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Sema.h
lib/Sema/SemaCXXCast.cpp
lib/Sema/SemaDeclCXX.cpp
test/SemaCXX/static-cast.cpp