Skip to content

С23 is not supported by CDT parser/indexer/analyser without LSP #1341

@Karlson2k

Description

@Karlson2k

Describe the bug
I'm using latest Eclipse (2025-09) CDT with GCC-16 (which defaults to C23), Makefile project and no LSP editor.
Syntax highlighter (and CDT code analyser) indicates errors on every bool, true, false, constexpr.

To Reproduce
Steps to reproduce the behavior:

  1. Create Makefile project in Eclipse CDT
  2. Add .c file with C23 code (any of bool, true, false, constexpr), for example:
int main(int argc, char **argv) {
  constexpr int a_cnst = (int) false;
  bool b_var = true;
  return b_var ? a_cnst : argc;
}
  1. See detected "errors" for every mentioned keyword

Expected behavior
bool, true, false, constexpr should not be detected as "errors" even when no header is included.

Screenshots
Image

Version Information (please complete the following information):

  • GNU/Linux, Gentoo
  • Eclipse Version: 2025-09 (4.37.0)
  • CDT Version: 12.2.0.202506091931

Metadata

Metadata

Assignees

No one assigned

    Labels

    languageC/C++ Language Support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions