C++ PATCHes to add __is_trivially_*

Jason Merrill jason@redhat.com
Wed Oct 1 17:20:00 GMT 2014


On 09/30/2014 06:48 PM, Ville Voutilainen wrote:
>>> Ville asked for help with the necessary compiler intrinsics for the is_trivially_* >>C++11 library traits. The first patch cleans up a few oddities I noticed with the
>> Great. I think this can be as well marked as PR c++/26099.
>
> There's also PR c++/63362.
>
> The intrinsics still fail to support certain variadic cases, such as
>
> template <class T, class... Args> void bar() {
>    static_assert(__is_trivially_constructible(T, Args...), "");
> }

Here are two more patches: the first fixes trivial_fn_p for a defaulted 
default constructor overloaded with a template default constructor, and 
the second fixes the variadic case above.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 63362.patch
Type: text/x-patch
Size: 9538 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20141001/a678371c/attachment.bin>


More information about the Gcc-patches mailing list