0

The project was moved from Eclipse 2020-12 to Eclipse 2023-09 and the indexer works fine in the 2020 version. It compiles in both versions.

All the other standard containers (vector, list, etc) are properly recognized by the indexer with the only exception of the "map" template. The include works and std::map is properly referenced to "stl_map.h" when asked but any declaration of a map has always "Invalid template arguments" and map members are not recognized.

At first glance the configuration is the same between both projects and the Preprocessor Include Paths are checked and equal. The problem persists in newly created projects.

The dialect in both cases is: c++2a

Does the Eclipse 2023 indexer need a newer MinGW version?

2
  • What stops you from answering your own question with a minimal reproducible example? By the way, Eclipse 2023-09 is two releases behind. Commented May 30, 2024 at 10:47
  • You are right. I will move the project to the latest eclipse version and test newer MinGW versions until the code is properly indexed. Since it is for sure a general configuration/compatibility issue it was a hard question but I was hoping for a known problem with maps indexing in eclipse with MinGW. A minimal reproducible example didn't make much sense here since everything is indexed properly except literally all the maps in the workspace. Commented May 30, 2024 at 16:43

1 Answer 1

0

Updating to the latest Eclipse version solved the problem.

Updating MinGW didn't fix it.

(Information provided just in case someone experiences the same issue on similar versions)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.