summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-01-08 21:45:44 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-01-08 21:45:44 +0000
commitf9c59b71220ce1b740a85a1b4b6d962fae60c3c1 (patch)
tree426db2785b30debb374c1df554cf853ab5022f6d /clang/tools/c-index-test
parentf51ba1e3da910efab70a90697c2913dd7a32374e (diff)
downloadbcm5719-llvm-f9c59b71220ce1b740a85a1b4b6d962fae60c3c1.tar.gz
bcm5719-llvm-f9c59b71220ce1b740a85a1b4b6d962fae60c3c1.zip
PR30305: Implement proposed DR resolution to prevent slicing via inherited constructor.
The rule we use is that a construction of a class type T from an argument of type U cannot use an inherited constructor if U is the same as T or is derived from T (or if the initialization would first convert it to such a type). This (approximately) matches the rule in use by GCC, and matches the current proposed DR resolution. llvm-svn: 291403
Diffstat (limited to 'clang/tools/c-index-test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud