According to https://en.cppreference.com/w/cpp/identifier_with_special_meaning/import, import
has been part of the language since C++20. However, C++20 support in GCC is currently experimental. As such, you'll need to enable C++20 support by adding the command-line parameter -std=c++20 for the import
identifier to be recognized.