diff options
author | Jason Merrill <jason@redhat.com> | 2018-05-23 13:21:39 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2018-05-23 13:21:39 -0400 |
commit | a347241b939399be041672fa6dfbc6c8c1853e28 (patch) | |
tree | 5bd0c1d1ac2778a2a49fe517118ceedcc7b8c77a /gcc/tree-loop-distribution.c | |
parent | 955da5e5443724cb59f8fbd854c13e78c68bf000 (diff) | |
download | gcc-a347241b939399be041672fa6dfbc6c8c1853e28.zip gcc-a347241b939399be041672fa6dfbc6c8c1853e28.tar.gz gcc-a347241b939399be041672fa6dfbc6c8c1853e28.tar.bz2 |
Fix cast to rvalue reference from prvalue.
* cvt.c (diagnose_ref_binding): Handle rvalue reference.
* rtti.c (build_dynamic_cast_1): Don't try to build a reference to
non-class type. Handle xvalue argument.
* typeck.c (build_reinterpret_cast_1): Allow cast from prvalue to
rvalue reference.
* semantics.c (finish_compound_literal): Do direct-initialization,
not cast, to initialize a reference.
From-SVN: r260622
Diffstat (limited to 'gcc/tree-loop-distribution.c')
0 files changed, 0 insertions, 0 deletions