Project

General

Profile

Actions

Bug #2335

open

FREECIV_HAVE_CXX20_CAPTURE_THIS not set for clang++23

Added by Marko Lindqvist 9 days ago. Updated 9 days ago.

Status:
In Review
Priority:
Normal
Category:
Bootstrap
Target version:
Start date:
10/05/2026
Due date:
% Done:

0%

Estimated time:

Description

Seen on autotools based build, but meson is likely affected too.

clang++23 configure check for "c++20 capture this" semantics fails because "-Werror" & "-Wc++20-extensions" are active.


Files


Related issues 1 (1 open — 0 closed)

Blocks Task #2218: Release 3.2.7NewMarko Lindqvist09/05/2026

Actions
Actions #1

Updated by Marko Lindqvist 9 days ago

Happens also with older versions of clang.

Actions #2

Updated by Marko Lindqvist 9 days ago

  • Target version set to 3.2.7
Actions #3

Updated by Marko Lindqvist 9 days ago

Actions #4

Updated by Marko Lindqvist 9 days ago

The inconsistency within clang. The compiler complains (by default) if C++20 semantics are used, clang analyzer complains if C++20 semantics are not used.

Actions

Also available in: Atom PDF