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

List:       kdevelop-bugs
Subject:    [Bug 139424] New: C99-style struct initializer parse error
From:       Tolga Dalman <tdalman () project-psi ! org>
Date:       2006-12-31 2:23:27
Message-ID: 20061231032326.139424.tdalman () project-psi ! org
[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=139424         
           Summary: C99-style struct initializer parse error
           Product: kdevelop
           Version: 3.3.5
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs kdevelop org
        ReportedBy: tdalman project-psi org


Version:           3.3.5 (using KDE 3.5.5, Gentoo)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.18

Consider the following code snippet:

struct some_struct {
  int a;
  int b;
};

void foo(void) {
  struct some_struct bar = { .a = 10, .b = 20 };
  //...
}

The first line in foo is marked as error, although it is valid C99 code (but not \
C++). Is there some way to tell the parse, to ignore (or mark the source entirely \
C-only) ? Otherwise, it would be nice if this could be resolved....


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

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