Cannot compile, error: identifier ‘requires’ is a keyword in C++20
envgap__MultiMC__Launcher-5211
01 / FAILURE SIGNATURE
As reported upstream
src/Launcher/launcher/minecraft/VersionFile.h:97:22: error: identifier ‘requires’ is a keyword in C++20 [-Werror=c++20-compat]
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
33a8b916a1baa46026681101ab870cb0a0684fa5- Manifest
CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
MultiMC/Launcher #5211 · read the original issue
### Operating System
Linux
### Description of bug
Cannot compile:
```
...
src/Launcher/launcher/minecraft/VersionFile.h:97:22: error: identifier ‘requires’ is a keyword in C++20 [-Werror=c++20-compat]
97 | Meta::RequireSet requires;
| ^~~~~~~~
cc1plus: all warnings being treated as errors
...
```
### Important flags
```
CFLAGS="-march=native -mtune=native -O2 -pipe -fno-plt -fexceptions \
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
-fstack-clash-protection -fcf-protection"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
LTOFLAGS="-flto=auto"
MAKEFLAGS="-j128"
```
### GCC version
GCC 13.1.1
### Steps to reproduce
`make -j$(nproc --all)`
### This issue is unique
- [x] I have searched the issue tracker and did not find an issue describing my bug.04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]