diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2013-12-20 16:01:02 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2013-12-20 16:01:02 +0000 |
commit | a5fd0716f8be33c61c747bb3cca5a501bf127b90 (patch) | |
tree | aaf1024abcd7c55552e09fd22908a6bf93b28ff8 /contrib/gcc/cp/rtti.c | |
parent | 008f5a254f69c46e367725b4570fdb097caa7e68 (diff) | |
download | src-a5fd0716f8be33c61c747bb3cca5a501bf127b90.tar.gz src-a5fd0716f8be33c61c747bb3cca5a501bf127b90.zip |
gcc: merge upstream fix and new feature.
Fix for PR c++/29928
Add support for Rvalue references as described here:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html
Obtained from: gcc 4.3 (rev. 124724, 125211; GPLv2)
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=259655
Diffstat (limited to 'contrib/gcc/cp/rtti.c')
-rw-r--r-- | contrib/gcc/cp/rtti.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/gcc/cp/rtti.c b/contrib/gcc/cp/rtti.c index 5e58e5c3fe6a..f1a045c6a61a 100644 --- a/contrib/gcc/cp/rtti.c +++ b/contrib/gcc/cp/rtti.c @@ -238,7 +238,7 @@ get_tinfo_decl_dynamic (tree exp) /* Peel off cv qualifiers. */ type = TYPE_MAIN_VARIANT (type); - if (!VOID_TYPE_P (type)) + if (CLASS_TYPE_P (type)) type = complete_type_or_else (type, exp); if (!type) @@ -430,7 +430,7 @@ get_typeid (tree type) that is the operand of typeid are always ignored. */ type = TYPE_MAIN_VARIANT (type); - if (!VOID_TYPE_P (type)) + if (CLASS_TYPE_P (type)) type = complete_type_or_else (type, NULL_TREE); if (!type) |