Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
Qt Creator 4.10.1
-
None
Description
If I define a function with a particular constexpr if (C++17), all refactoring options like Find references to symbol, F2, and renaming doesn't work for the functions declared/defined after it.
void fn() { if constexpr (std::is_integral<int>::value) { int i; } }
If I put the whole definition in a header file, it breaks all functions declared/defined after it. If I put the declaration in the header and the definition in the cpp file, it breaks all functions after the definition.
If I comment out constexpr, everything works.
If I comment out int i, everything works.
If i use if constexpr (true), it also works.