Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++20 for ESP32? #5859

Closed
VioletGiraffe opened this issue Nov 8, 2021 · 3 comments
Closed

C++20 for ESP32? #5859

VioletGiraffe opened this issue Nov 8, 2021 · 3 comments
Labels
Type: Question Only question

Comments

@VioletGiraffe
Copy link

VioletGiraffe commented Nov 8, 2021

This is not a bug report, more of a request / question. Is there a way to get C++20 working? And what's the latest version of toolchain-xtensa32? I'm using 3.80200.200512, this one recognizes -std=gnu++2a, but it's GCC 9 - some important features are missing, like consteval. Is there a ESP32 toolchain with GCC 10? Or, at least, is it being worked on?

P. S. I can't find a list of existing toolchain versions to see if mine is the latest one.

@igrr
Copy link
Member

igrr commented Nov 8, 2021

This is being worked on, we will switch to GCC 11 and C++20 in the next toolchain release. The tracking issue is espressif/esp-idf#4846

@VioletGiraffe
Copy link
Author

@igrr, that's great news, thank you!

@VojtechBartoska VojtechBartoska added the Type: Question Only question label Nov 8, 2021
espressif-bot pushed a commit to espressif/esp-idf that referenced this issue Jun 25, 2022
@hansmbakker
Copy link

Work is being done in #7733

abryant added a commit to abryant/CosmicSignpost that referenced this issue Feb 18, 2023
C++20 is not supported by the framework yet, but it looks like upgrades
to ESP-IDF are in progress. It's not clear when support will arrive for
the Arduino framework.

See also:
espressif/esp-idf#6214 (comment)
espressif/arduino-esp32#5859
abryant added a commit to abryant/CosmicSignpost that referenced this issue Feb 18, 2023
C++20 is not supported by the framework yet, but it looks like upgrades
to ESP-IDF are in progress. It's not clear when support will arrive for
the Arduino framework.

See also:
espressif/esp-idf#6214 (comment)
espressif/arduino-esp32#5859
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Only question
Projects
None yet
Development

No branches or pull requests

4 participants