[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 185323] Using a member of an anonymous struct in a class is not
From:       nicolas Mahoudeaux <nmahoude () gmail ! com>
Date:       2009-04-23 21:43:45
Message-ID: 20090423214345.1568516918 () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=185323


nicolas Mahoudeaux <nmahoude@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nmahoude@gmail.com




--- Comment #1 from nicolas Mahoudeaux <nmahoude gmail com>  2009-04-23 23:43:43 ---
Hi, 
Same problem here with anonymous struct in union (gcc 4.3, kde 4.2.70, kdevelop
3.9.92 svn 22/04/2009):

class CUnionTest {
  public:
    union {
      struct {
    int x,y,z;
      };
      int p[3];
    };

    struct {
      int b;
    };

    struct {
      int c;
    } cc;
};
use : 
  CUnionTest test;

  test.x = 10; // -> underlined yellow and 'Problem' window reports :
Declaration not found: x | Sementic analysis | ....
  test.b = 10; // -> same problem

  test.p[0] = 10; // -> Ok (no line in Problem report)
  test.cc.c = 10; // -> Ok (no line in probleme report)

Everything compiles successfully

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic