Re: Build failure with GCC 15 (defaults to -std=gnu23) - Mailing list pgsql-bugs

From Andres Freund
Subject Re: Build failure with GCC 15 (defaults to -std=gnu23)
Date
Msg-id kqjln377utrnmxlwvczqjcugiwokkptevieimndjruospyelff@uohaegzszbrm
Whole thread Raw
In response to Re: Build failure with GCC 15 (defaults to -std=gnu23)  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-bugs
Hi,

On 2024-11-27 19:01:36 +0000, Sam James wrote:
> > [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113688
> See https://gcc.gnu.org/PR117724 as well. The issues are related in that
> canonicalisation of struct types keeps needing revisiting, more so in
> light of C23 changes.

Thanks.


> Note also that the ICE is only with "checking" (~assertions) which is
> enabled at a stricter level for non-releases by default, so some of it
> may affect 14 but not show up there.

Ah, that explains that.


> Martin Uecker has posted a patch which is currently being reviewed. I
> wouldn't worry about it until that lands unless the build failures continue.

I changed my local build to use the same --checking as debian's gcc-snapshot,
confirmed that that reproduces the issue. Then applied Martin's patch. It does
fix the problem.

Greetings,

Andres Freund



pgsql-bugs by date:

Previous
From: Sam James
Date:
Subject: Re: Build failure with GCC 15 (defaults to -std=gnu23)
Next
From: Andres Freund
Date:
Subject: Re: Build failure with GCC 15 (defaults to -std=gnu23)