This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch] PR 58871
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Jason Merrill <jason at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 03 Feb 2014 17:52:17 +0100
- Subject: Re: [C++ Patch] PR 58871
- Authentication-results: sourceware.org; auth=none
- References: <52EFBF30 dot 50402 at oracle dot com> <52EFC11E dot 8010800 at redhat dot com>
On 02/03/2014 05:17 PM, Jason Merrill wrote:
Use vec_safe_is_empty instead of checking the two representations of
an empty vector separately. OK with that change.
Ah nice. Thanks.
Note, anyway, that unfortunately it's pretty easy to construct an ICE on
valid too, which doesn't seem a regression, but should be also looked at.
struct B { };
template<typename T> struct A : virtual B
{
A();
A(const A&);
};
template<typename T> A<T>::A(const A<T>&) = default;
A<int> a = A<int>();
What do you think? Shall I check for duplicates and in case open a new
Bugzilla?
Thanks,
Paolo.