From: Tom Lane <tgl@sss.pgh.pa.us>
To: Grant Jurgensen <grant@kestrel.edu>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Incompatible declarations of pg_reg_getcolor() in regcomp.c and regexec.c
Date: Fri, 06 Nov 2026 15:32:20 -0500
Message-ID: <1905077.1793997140@sss.pgh.pa.us> (raw)
In-Reply-To: <13a01caf-c4de-454e-aefa-92260aac7e64@kestrel.edu>
References: <13a01caf-c4de-454e-aefa-92260aac7e64@kestrel.edu>
Grant Jurgensen <grant@kestrel.edu> writes:
> The regex compiler and executor declare the external function
> pg_reg_getcolor() with incompatible types, which is undefined behavior
> under C17 6.2.7p2:
Since pg_reg_getcolor doesn't touch the colormap.v field, I'm
fairly confused about where there is any actual undefined behavior.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, grant@kestrel.edu
Subject: Re: Incompatible declarations of pg_reg_getcolor() in regcomp.c and regexec.c
In-Reply-To: <1905077.1793997140@sss.pgh.pa.us>
References: <13a01caf-c4de-454e-aefa-92260aac7e64@kestrel.edu> <1905077.1793997140@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox