cancel
Showing results for 
Search instead for 
Did you mean: 

C/C++ Indexer and compilers - C23 support?

Artur Laskowski
Associate III

Hi,

 

I want to know when the C/C++ Indexer will be updated to the latest C standard, that is, C23? I want to use some new language features, like double square brackets for attributes, but it still shows a syntax error, even though the code compiles without problems.


ArturLaskowski_0-1770376011218.png


Also, I would like to know when GCC 15 will be available.
 
Best regards,
Artur

 

1 ACCEPTED SOLUTION

Accepted Solutions
Aimen1
ST Employee

Hello @Artur Laskowski 

The C23 syntax support is already tracked under this internal ticket number 220188 for follow-up.

Regarding GCC15, it is expected to be supported by November 2026. 

Regards.

Aimen


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

5 REPLIES 5
Aimen1
ST Employee

Hello @Artur Laskowski 

The C23 syntax support is already tracked under this internal ticket number 220188 for follow-up.

Regarding GCC15, it is expected to be supported by November 2026. 

Regards.

Aimen


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Good to hear that, thanks

gbm
Principal

Maybe a good starting point would be the explicit support for C23 in the compiler language dialect tab. So far we need to set the dialect to GNU default, then manually add the option -std=c23, which is not very convenient.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
Andrew Neil
Super User

Note that this is a well-known feature of the Eclipse* Indexer - not specific to CubeIDE

C23 support

C23 syntax highlighting in STM32CubeIDE (e.g. constexpr)

STM32CubeIDE Indexer: False Positive Syntax Error with C11 _Generic

Defining enum type compiles ok, but STM32CubeIDE flags syntax error

CubeIDE incorrectly flags __attribute__((fallthrough)) as syntax error

etc, etc, ...


* In fact, not just Eclipse - it also happens in other IDEs.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Yeah, I know. But even if one is publishing the IDE based on a third-party framework, it would be nice if all its components were up to date and worked properly. Otherwise, the comfort of programming and the quality of the code are hard to sustain.