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]

Re: [C++ PATCH, RFC] PR c++/63959, continued


On 30 January 2015 at 20:25, Jason Merrill <jason@redhat.com> wrote:
> On 01/30/2015 01:13 PM, Ville Voutilainen wrote:
>>>
>>> Why would void *const volatile still be trivial?
>>
>>
>> Arrrrggggh. It isn't. YES and YES2 are macros, so YES2(void*) expands to
>> is_trivial<const volatile void*>::value, which is true, whereas
>> is_trivial<void* const volatile>::value is false.
>>
>> I think it would be reasonable to convert these macros in that test into
>> function templates, no? :)
>
>
> Makes sense to me.  :)
>
> Jason


So, a new patch attached. The only change to the previous one is the change
to the trivial1.C test.

Attachment: pr63959_5.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]