Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 3.6.0-rc1
Description
Invalid code as the following might lead to this.
Case 1
case1.cpp
void f()
{
}
struct Foo {
// The following line and everything above will be underlined in red.
bla;
};
Case 2
case2.cpp
template <typename T> struct QForeachContainer { QForeachContainer(const T&) {} }; void f() { // The following line and everything above will be underlined in red. for (QForeachContainer<__typeof__(v.x)> container(v.x); true; ) return; }
Replacing the second v.x with e.g. v only underlines one line. Same if the "templateness" is removed of this example.