Re: Incompatible declarations of pg_reg_getcolor() in regcomp.c and regexec.c

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Grant Jurgensen <grant(at)kestrel(dot)edu>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: Incompatible declarations of pg_reg_getcolor() in regcomp.c and regexec.c
Date: 2026-11-06 20:32:20
Message-ID: 1905077.1793997140@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Grant Jurgensen <grant(at)kestrel(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Grant Jurgensen 2026-11-06 20:47:02 Re: Incompatible declarations of pg_reg_getcolor() in regcomp.c and regexec.c
Previous Message Grant Jurgensen 2026-11-06 20:04:52 Incompatible declarations of pg_reg_getcolor() in regcomp.c and regexec.c