This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 9 May 2017 at 16:25, Jakub Jelinek <jakub@redhat.com> wrote: >> >> 2017-05-09 Ville Voutilainen <ville.voutilainen@gmail.com> >> >> >> >> gcc/ >> >> >> >> PR c++/80682 >> >> * cp/method.c (is_trivially_xible): Reject void types. > > No cp/ in cp/ChangeLog entries. So perhaps 2017-05-09 Ville Voutilainen <ville.voutilainen@gmail.com> cp/ PR c++/80682 * method.c (is_trivially_xible): Reject void types. testsuite/ PR c++/80682 * g++.dg/ext/is_trivially_constructible1.C: Add tests for void target. >> + if (cv_unqualified (to) == void_type_node) >> + return false; > > Can't this be checked more cheaply as if (TYPE_MAIN_VARIANT (to) == void_type_node) ? Yes. A new patch attached.
Attachment:
80682_3.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |