From kdevelop-bugs Wed Jul 28 12:43:28 2010 From: Leandro Santiago da Silva Date: Wed, 28 Jul 2010 12:43:28 +0000 To: kdevelop-bugs Subject: [Bug 246026] New: KDevelop editor does'nt parse struct attribution Message-Id: X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=128032113306970 https://bugs.kde.org/show_bug.cgi?id=246026 Summary: KDevelop editor does'nt parse struct attribution Product: kdevelop Version: SVN Platform: Ubuntu Packages OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: Language Support: CPP AssignedTo: kdevelop-bugs@kdevelop.org ReportedBy: leandrosansilva@gmail.com Version: SVN (using KDE 4.4.5) OS: Linux In my project I'm using a struct type called AVRational: typedef struct AVRational{ int num; ///< numerator int den; ///< denominator } AVRational; And declare an AVRational: AVRational i; If I try to set this struct: i = (AVRational){1,10}; KDevelop editor doesn't parse this instruction. I think this syntax is correct in c/c++ because the program compiles fine. Reproducible: Didn't try Steps to Reproduce: Create a new C file with this contents: #include typedef struct MyStruct { int num; int den; } MyType; int main() { MyType i; i = (MyType){1,13}; printf("%d and %d\n",i.num,i.den); return 1; } And compiles with: gcc teste.c -o teste -Wall Or: clang teste.c -o teste Or: tcc teste.c -o teste I've used just these three compilers and all them compile fine and don't show any warning messages. -- 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