Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOwCX-0002Yi-M0 for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Mar 2021 05:37:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lOwCW-0005FZ-Ef for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Mar 2021 05:37:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOwCW-0005FR-8H for pgsql-bugs@lists.postgresql.org; Wed, 24 Mar 2021 05:37:04 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOwCP-00023G-Ho for pgsql-bugs@lists.postgresql.org; Wed, 24 Mar 2021 05:37:03 +0000 Received: from [188.174.48.224] (helo=c720-r368166.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOwCM-0007J8-4s; Wed, 24 Mar 2021 06:36:54 +0100 Received: from c720-r368166.fritz.box (localhost [127.0.0.1]) by c720-r368166.unixarea.de (8.16.1/8.14.9) with ESMTPS id 12O5ariU001697 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 24 Mar 2021 06:36:53 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by c720-r368166.fritz.box (8.16.1/8.14.9/Submit) id 12O5ar0i001696; Wed, 24 Mar 2021 06:36:53 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: c720-r368166.fritz.box: guru set sender to guru@unixarea.de using -f Date: Wed, 24 Mar 2021 06:36:53 +0100 From: Matthias Apitz To: pgsql-bugs@lists.postgresql.org, bryan.w.staley@gmail.com Subject: Re: BUG #16941: ECPG add support for const void* Message-ID: Reply-To: Matthias Apitz References: <16941-237cf5e9b31fcee5@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <16941-237cf5e9b31fcee5@postgresql.org> X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.48.224 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk El día martes, marzo 23, 2021 a las 04:07:01p. m. +0000, PG Bug reporting form escribió: > The following bug has been logged on the website: > > Bug reference: 16941 > Logged by: Bryan Staley > Email address: bryan.w.staley@gmail.com > PostgreSQL version: 13.1 > Operating system: RHEL 7 > Description: > > The following doesn't compile via ecpg > > ``` > EXEC SQL BEGIN DECLARE SECTION; > static const char[2] TEST = "F"; > EXEC SQL END DECLARE SECTION; > ``` > > Fails with > error: invalid conversion from 'const void*' to 'void*' > This would not even compile: $ cc -v FreeBSD clang version 11.0.0 (git@github.com:llvm/llvm-project.git llvmorg-11.0.0-0-g176249bd673) Target: x86_64-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin $ cat c.c static const char[2] TEST = "F"; $ cc c.c c.c:2:26: error: brackets are not allowed here; to declare an array, place the brackets after the identifier static const char[2] TEST = "F"; ~~~ ^ [2] 1 error generated. -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub ¡Con Cuba no te metas! «» Don't mess with Cuba! «» Leg Dich nicht mit Kuba an! http://www.cubadebate.cu/noticias/2020/12/25/en-video-con-cuba-no-te-metas/