Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xPQbt-00000000etW-3KEa for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Nov 2026 20:32:31 +0000 Received: from localhost ([127.0.0.1]:60344 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xPQbt-00000001VIJ-1VgC for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Nov 2026 20:32:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]:49016) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xPQbt-00000001VI9-0PgD for pgsql-bugs@lists.postgresql.org; Fri, 06 Nov 2026 20:32:29 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xPQbn-00000000bti-1W8n for pgsql-bugs@lists.postgresql.org; Fri, 06 Nov 2026 20:32:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 6A6KWKvL1905078; Fri, 6 Nov 2026 15:32:20 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 sss.pgh.pa.us 6A6KWKvL1905078 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sss.pgh.pa.us; s=default; t=1793997140; bh=zprnv1GlEJ7d9Do54id/27klk1nzkiAOX4LSHuKmn4Y=; h=From:To:cc:Subject:In-reply-to:References:Date:From; b=OFdJr38hjYewRc7q6LMcK1OO+Yos+CjZGqZm2Poi96u2qv293tnnuNdDjs6ORro00 rSSyYCpK3bcBSZVWdNLKtRGOO5hFh+6ved2OqgBc2OZGx8TiUsJTSBbtbW+jzlkMP6 TUHBJL6tlfxbonz7uhZO20Q0oMT/uhB7S7+sevAw= From: Tom Lane To: Grant Jurgensen cc: pgsql-bugs@lists.postgresql.org Subject: Re: Incompatible declarations of pg_reg_getcolor() in regcomp.c and regexec.c In-reply-to: <13a01caf-c4de-454e-aefa-92260aac7e64@kestrel.edu> References: <13a01caf-c4de-454e-aefa-92260aac7e64@kestrel.edu> Comments: In-reply-to Grant Jurgensen message dated "Fri, 06 Nov 2026 14:04:52 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1905076.1793997140.1@sss.pgh.pa.us> Date: Fri, 06 Nov 2026 15:32:20 -0500 Message-ID: <1905077.1793997140@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Grant Jurgensen 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