[PATCH v7] assert: Support assert as variadic macro for C++26 [PR27276]
Yury Khrustalev
yury.khrustalev@arm.com
Tue Mar 3 13:30:59 GMT 2026
On Tue, Mar 03, 2026 at 01:45:10PM +0100, Tomasz Kaminski wrote:
> On Tue, Mar 3, 2026 at 1:39 PM Adhemerval Zanella Netto <
> adhemerval.zanella@linaro.org> wrote:
>
> > On 03/03/26 07:56, Yury Khrustalev wrote:
> > > On Wed, Feb 25, 2026 at 03:01:23PM +0100, Tomasz Kamiński wrote:
> > >> From: Jonathan Wakely <jwakely@redhat.com>
> > >
> > > This patch has a new test that fails to compile with GCC 14.2 (although
> > > it works with GCC 14.3) and causes make check to fail e.g. on Debian 13.
> > >
> > >
> > > ...
> > >
> > > is not enough to check if this test is supported or not. XFAIL will not
> > > help here because the test doesn't compile which causes make check to
> > > fail.
> >
> > It does seems to me this is a compiler bug, I checked with gcc version
> > 14.3.1 20250814
> > and gcc version 15.2.1 20260112 without issues.
> >
> > Tomasz, is this a compiler bug or something has changes for gcc 14? If so
> > I think we might need __GNUC_PREREQ for the test.
> >
> > Yes, this looks like compiler bug that was fixed in 14.3 and 15, but
> wasn't able to identify the specific change yet.
Looks like
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=e2a178a5110
is the commit where this is fixed and the previous commit
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ecc2725d61f
fails to compile this code.
Off-topic, but should I create a GCC BZ ticket for 14.2 (even though the
bug is already fixed in 14.3)?
Thanks,
Yury
More information about the Libc-alpha
mailing list