Re: r11-2663 causes static_assert failure

2020-08-13 Thread Jakub Jelinek via Gcc-patches
On Thu, Aug 13, 2020 at 01:55:40PM +0100, Iain Sandoe wrote: > diff --git a/gcc/vec.h b/gcc/vec.h > index db48e97..a8fca34 100644 > --- a/gcc/vec.h > +++ b/gcc/vec.h > @@ -623,7 +623,7 @@ public: >/* FIXME - These fields should be private, but we need to cater to >compilers that hav

Re: r11-2663 causes static_assert failure

2020-08-13 Thread Jakub Jelinek via Gcc-patches
On Thu, Aug 13, 2020 at 01:46:53PM +0100, Iain Sandoe wrote: > Jakub Jelinek via Gcc-patches wrote: > > > On Thu, Aug 13, 2020 at 02:06:21PM +0200, Tobias Burnus wrote: > > > Build server is x86_64-gnu-linux, "i686-pc-linux-gnu-g++" is a > > > native binary of GCC 5.2.0 > > > [Don't ask why i686

Re: r11-2663 causes static_assert failure

2020-08-13 Thread Iain Sandoe
Iain Sandoe via Gcc-patches wrote: Jakub Jelinek via Gcc-patches wrote: On Thu, Aug 13, 2020 at 02:06:21PM +0200, Tobias Burnus wrote: Build server is x86_64-gnu-linux, "i686-pc-linux-gnu-g++" is a native binary of GCC 5.2.0 [Don't ask why i686 and not x86_64 is used.] Ah, ok, so this b

Re: r11-2663 causes static_assert failure

2020-08-13 Thread Iain Sandoe via Gcc-patches
Jakub Jelinek via Gcc-patches wrote: On Thu, Aug 13, 2020 at 02:06:21PM +0200, Tobias Burnus wrote: Build server is x86_64-gnu-linux, "i686-pc-linux-gnu-g++" is a native binary of GCC 5.2.0 [Don't ask why i686 and not x86_64 is used.] Ah, ok, so this boils down to: int i = alignof (long lo

Re: r11-2663 causes static_assert failure

2020-08-13 Thread Jakub Jelinek via Gcc-patches
On Thu, Aug 13, 2020 at 02:25:42PM +0200, Jakub Jelinek via Gcc-patches wrote: > --- gcc/vec.h.jj 2020-08-12 12:45:58.410686880 +0200 > +++ gcc/vec.h 2020-08-13 14:18:06.967041880 +0200 > @@ -1281,10 +1281,11 @@ template > inline size_t > vec::embedded_size (unsigned alloc) > { > - struct

Re: r11-2663 causes static_assert failure

2020-08-13 Thread Jakub Jelinek via Gcc-patches
On Thu, Aug 13, 2020 at 02:06:21PM +0200, Tobias Burnus wrote: > Build server is x86_64-gnu-linux, "i686-pc-linux-gnu-g++" is a native binary > of GCC 5.2.0 > [Don't ask why i686 and not x86_64 is used.] Ah, ok, so this boils down to: int i = alignof (long long int); struct TTT { char a; long lon

Re: r11-2663 causes static_assert failure

2020-08-13 Thread Tobias Burnus
On 8/13/20 1:52 PM, Jakub Jelinek wrote: On Thu, Aug 13, 2020 at 01:38:07PM +0200, Tobias Burnus wrote: I got a bit lost in this thread – but the commit r11-2663-g82c4b78dbef6f03838e3040688c934360a09513f "Replace std::vector<> usage in ipa-fnsummary.c with GCC's vec<>." Causes here: gcc-mainl

Re: r11-2663 causes static_assert failure (was: Re: std:vec for classes with constructor?)

2020-08-13 Thread Jakub Jelinek via Gcc-patches
On Thu, Aug 13, 2020 at 01:38:07PM +0200, Tobias Burnus wrote: > Hi, > > I got a bit lost in this thread – but the > commit r11-2663-g82c4b78dbef6f03838e3040688c934360a09513f > "Replace std::vector<> usage in ipa-fnsummary.c with GCC's vec<>." > > Causes here: > > gcc-mainline/gcc/vec.h:1287:3: