Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 2.7.0
-
None
Description
struct Foo { int foo; }; Foo global_t; template<class T> struct Outer { struct Nested { // doesn't work const T &operator*() const { T *t = new T; return *t; } // doesn't work const T &operator*() const { return T(); } // doesn't work const T &operator*() const { return global_t; } // partially works (see QTCREATORBUG-9006) const T &operator*() const { return local_t; } T local_t; }; }; void bug() { Outer<Foo>::Nested nested; (*nested).foo; // Not highlighted }