Re: [PATCH] vec.h, v2: Make some ops work with non-trivially copy constructible and/or destructible types

2023-09-27 Thread Mikael Morin
Hello, Le 27/09/2023 à 12:46, Jakub Jelinek a écrit : --- gcc/vec.h.jj2023-09-27 10:38:50.635845540 +0200 +++ gcc/vec.h 2023-09-27 12:11:56.665586490 +0200 @@ -1028,13 +1050,17 @@ template inline void vec::truncate (unsigned size) { - gcc_checking_assert (length () >= size); +

Re: [PATCH] vec.h, v2: Make some ops work with non-trivially copy constructible and/or destructible types

2023-09-27 Thread Richard Biener
On Wed, 27 Sep 2023, Jakub Jelinek wrote: > On Wed, Sep 27, 2023 at 07:17:22AM +, Richard Biener wrote: > > OK I guess. Can you summarize the limitations for non-POD types > > in the big comment at the start of vec.h? > > Still haven't done that, but will do after we flesh out the details >

[PATCH] vec.h, v2: Make some ops work with non-trivially copy constructible and/or destructible types

2023-09-27 Thread Jakub Jelinek
On Wed, Sep 27, 2023 at 07:17:22AM +, Richard Biener wrote: > OK I guess. Can you summarize the limitations for non-POD types > in the big comment at the start of vec.h? Still haven't done that, but will do after we flesh out the details below. > (can we put in static_asserts > in the