This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH, RFC] PR c++/63959, continued
- From: Jason Merrill <jason at redhat dot com>
- To: Ville Voutilainen <ville dot voutilainen at gmail dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, libstdc++ at gcc dot gnu dot org
- Date: Tue, 20 Jan 2015 08:06:38 -0500
- Subject: Re: [C++ PATCH, RFC] PR c++/63959, continued
- Authentication-results: sourceware.org; auth=none
- References: <CAFk2RUYhAnLjFc8mcTfiheJAr4R6E1mdx32PTqZJ5EpPt8=4aQ at mail dot gmail dot com> <CAFk2RUY8Xwx3RvoPGgas4eO4wOvvS+cqh6acp6uBStjdKwS2GA at mail dot gmail dot com> <CAFk2RUZ_jfxKj0aFfW4D0K0O402RXjFx6yEYM2iVTr5f61iNTA at mail dot gmail dot com>
On 01/19/2015 06:06 PM, Ville Voutilainen wrote:
+ return (trivial_type_p (type1)
+ || (scalarish_type_p (type1) && CP_TYPE_VOLATILE_P (type1))
+ || type_code1 == REFERENCE_TYPE
|| (CLASS_TYPE_P (type1)
&& TYPE_HAS_TRIVIAL_DESTRUCTOR (type1)));
I think we can drop the trivial_type_p check now, it's redundant.
Jason