- 
    Bug 
- 
    Resolution: Done
- 
    P3: Somewhat important 
- 
    Qt Creator 4.14.0
- 
    None
- 
        74177a559e16c5c260d8934a7f5a7a959e4565b3 (qt-creator/qt-creator/master)
Consider the following code snippet:
struct S { union { int i = 12; void *something; }; int func(bool b) { if (b) return i; // <-- here int i = 42; return i; } };
In the marked line, i is not colored as a member variable; moreover go-to-definition will jump to the local definition of i, instead of to the one inside the union.
If the union is replaced with a simple member i, or if this->i is used instead of i, everything works as expected.
| For Gerrit Dashboard: QTCREATORBUG-25342 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 334611,2 | clangbackend: Work around libclang cursor bug | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |