[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 110170] New: Code completion doesn't detect unnamed nested structs/unions.
From: kdevelop-bugs-admin () barney ! cs ! uni-potsdam ! de
Date: 2005-08-04 11:49:08
Message-ID: 20050804134907.110170.trane () ecf ! utoronto ! ca
[Download RAW message or body]
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=110170
Summary: Code completion doesn't detect unnamed nested
structs/unions.
Product: kdevelop
Version: 3.2.2
Platform: Fedora RPMs
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kdevelop-bugs kdevelop org
ReportedBy: trane ecf utoronto ca
Version: 3.2.2 (using KDE KDE 3.4.2)
Installed from: Fedora RPMs
Compiler: g++ (GCC) 4.0.0 20050519 (Red Hat 4.0.0-8)
OS: Linux
Here are several examples that illustrate this:
class MyClass {
public:
struct { // unnamed nested struct
int a; float b;
};
};
class MyClass2 {
public:
union { // unnamed nested union
int a; float b;
};
};
int main() {
MyClass example1;
MyClass example2;
example1. // No code completion appears!
example1.a = 1; // OK, 'a' is accessible.
example1.b = 3.14; // OK, 'b' is accessible.
cout << example1.a << ", " << example2.b; // OK, works
example2. // Same thing. Nothing appears.
example2.a = 3; // OK
cout << example2.a; // OK, works
}
Just tested under 3.2.2 and previously 3.2. Please disregard the duplicate bug I \
opened previously without testing under 3.2.2 (Bug #110133).
Thanks.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic