Community
Participate
Working Groups
i get parse error on this C++0x code vector<int> ret() { return {1,3,3};//error: "Return without value, in function returning non-void" }; when i add "vector<int>" after return, parser stop showing error both version work under MinGW 4.5 -- Configuration Details -- Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.cpp.product) Installed Features: org.eclipse.platform 3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L
how do make cdt to understand this as c++0x in a first place? Any special settings?
(In reply to comment #1) > how do make cdt to understand this as c++0x in a first place? Any special > settings? You don't need a special setting, the parser accepts c++0x (as far as we support it) per default.
Created attachment 198128 [details] Fix My smallest patch ever, I think :)
test is missing
Created attachment 198958 [details] test case
patch applied, thanks
*** cdt git genie on behalf of 333599 *** Bug 333599 - [C++0x] Initializer lists & return without type [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=85d105d4f5aeea421f46aac0d5213051c1b1d050
*** cdt git genie on behalf of 333599 *** Bug 333599 - [C++0x] Initializer lists & return without type [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=761ccb9301f63f439aad89ef060775369ef917a0
*** Bug 352924 has been marked as a duplicate of this bug. ***