diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-01-08 21:45:44 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-01-08 21:45:44 +0000 |
commit | f9c59b71220ce1b740a85a1b4b6d962fae60c3c1 (patch) | |
tree | 426db2785b30debb374c1df554cf853ab5022f6d /llvm/lib/Support/CommandLine.cpp | |
parent | f51ba1e3da910efab70a90697c2913dd7a32374e (diff) | |
download | llvm-f9c59b71220ce1b740a85a1b4b6d962fae60c3c1.zip llvm-f9c59b71220ce1b740a85a1b4b6d962fae60c3c1.tar.gz llvm-f9c59b71220ce1b740a85a1b4b6d962fae60c3c1.tar.bz2 |
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 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions