Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does gcc 4.8.1 have C++11 support for garbage collection?

The reason I'm asking is, that there are contradictory pieces of information on the web. On the one hand on isocpp.org it states that GCC 4.8.1 has the C++11 standard implemented completely. On the other hand the GCC C++11 support page states that there is no "Minimal support for garbage collection and reachability-based leak detection". So is GCC 4.8.1 really C++11 feature complete?

like image 649
Ralph Tandetzky Avatar asked Jun 10 '13 07:06

Ralph Tandetzky


People also ask

Does G ++ 4.8 support C++ 11?

Status of Experimental C++11 Support in GCC 4.8GCC provides experimental support for the 2011 ISO C++ standard. This support can be enabled with the -std=c++11 or -std=gnu++11 compiler options; the former disables GNU extensions.

Does GCC have garbage collection?

MCC to Have Own Vehicles for Garbage Collection- AWHCPL Contract Ends January 2022. Mangaluru: During the special meeting, the ruling BJP in the Mangaluru City Corporation council approved the proposed model to procure vehicles for door-to-door waste collection and outsource the operations and maintenance of the system ...

Does C++ 11 have garbage collection?

Garbage collection (automatic recycling of unreferenced regions of memory) is optional in C++; that is, a garbage collector is not a compulsory part of an implementation. However, C++11 provides a definition of what a GC can do if one is used and an ABI (Application Binary Interface) to help control its actions.

When did GCC support C++ 11?

According to cppreference, full support of c++11 came with gcc 4.8.


1 Answers

The support for garbage collection is optional by the standard (see Bjarne Stroustrup C++11 FAQ). Therefore, GCC 4.8.1 is feature complete since it implements all the mandatory core parts of the standard.

The comments proved my answer unclear, I will be more specific: I was only talking about the core support for garbage collection. The library part is mandatory. The version of libstdc++ shipped with GCC 4.8.1 is not fully C++11-compliant (<regex> is not currently working for example), and the ABI for garbage collection is part of the missing features.

like image 175
Morwenn Avatar answered Oct 18 '22 12:10

Morwenn