[Bug 68131] New: C++ parser problem with declarations in the first field of "for" statement

Sylvain Joyeux sylvain.joyeux at m4x.org
Thu Nov 13 17:06:03 UTC 2003


------- 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=68131     
           Summary: C++ parser problem with declarations in the first field
                    of "for" statement
           Product: kdevelop
           Version: unspecified
          Platform: Debian testing
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel at kdevelop.org
        ReportedBy: sylvain.joyeux at m4x.org


Version:           CVS of 06 november 2003 (using KDE KDE 3.1.4)
Installed from:    Debian testing/unstable Packages
OS:          Linux

when writing the following :

struct foo
{
  int a;
  int b;
};

int bar()
{
  struct foo test[5];

  for (foo* current = test; current; ++current)
    current ->
}

the type of "current" is not guessed (after the ->), whereas it is when writing
  foo* current;
  for (current = test; current; ++current)
    current ->




More information about the KDevelop-devel mailing list