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