v16 fails to build w/ Visual Studio 2015

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: v16 fails to build w/ Visual Studio 2015
Date: 2023-06-07 18:54:58
Message-ID: 20230607185458.GA1334487@rfd.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Visual Studio 2015 version "14.0.25431.01 Update 3" has an apparent compiler
bug that causes the build to fail with "readfuncs.switch.c(522): fatal error
C1026: parser stack overflow, program too complex (compiling source file
src/backend/nodes/readfuncs.c)". While I wouldn't mind revoking support for
Visual Studio 2015, changing the code to cope is easy. See attached.
https://stackoverflow.com/a/34266725/16371536 asserts having confirmation of
the compiler bug, but its reference is now a dead link. This became a problem
in v16 due to the 135% increase in node types known to parseNodeString().

https:/postgr.es/m/20221124004144.iosgze2qnmcctgsh@awork3.anarazel.de
previously reported this error message when overriding USE_READLINE in a
Visual Studio build, for tab-complete.c. If that combination ever becomes
supported, we may face a similar decision there.

Attachment Content-Type Size
vs2015-parseNodeString-v1.patch text/plain 1.9 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tristan Partin 2023-06-07 19:16:00 Re: Use COPY for populating all pgbench tables
Previous Message Jaime Casanova 2023-06-07 18:50:30 Re: is pg_log_standby_snapshot() really needed?