https://bugs.kde.org/show_bug.cgi?id=302512 Bug ID: 302512 Severity: normal Version: git master Priority: NOR Assignee: kdevelop-bugs@kdevelop.org Summary: KDevelop errors out on uniform initialization - return std::string{"abc"}; Classification: Unclassified OS: Linux Reporter: ashaduri@gmail.com Hardware: Compiled Sources Status: UNCONFIRMED Component: Language Support: CPP Product: kdevelop I'm using KDevelop git master (2012-06-25). Consider the following code: #include std::string f() { return std::string{"abc"}; } The "return..." line is highlighted in red and the Problems tool view lists the following errors: Expected token ';' after 'identifier' found '{' Unexpected token '}' This statement is accepted by gcc 4.7. Note that std::string s{"abc"}; doesn't cause any errors. Neither does return int{0}; Thanks Reproducible: Always Steps to Reproduce: 1. Try the code sample. Actual Results: Lines in red. Expected Results: No lines in red. openSUSE 12.1 x86-64. gcc 4.7.1. -- 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