Search code examples
clionc++20msys2

why are all my std namespaces broken after updating msys gcc from 9.2 to 10.1.0


I just updated my msys gcc compiler from 9.2.0 to 10.1.0. Afterwards all functions inside std:: namespace cannot be found and are now behind namespace ::std:: with leading double colon and all Gtest MACROS e.g TEST are highlighted as errors. here's an example:

std::in_place without leading double colon gives an error : no member named "in_place" in namespace 'std::ranges::std'


Solution

  • It's known issue with CLion 2020.1.x. The current W/A is to use C++17 until they will fix it and provide bugfix update.