I was wondering if it is safe to use the latest GCC version, or do people usually go a few versions back (and if so how many). Are there trusted versions which can be assumed to be (relatively) bug free, or can i safely assume (for non life saving programs) that the latest GCC version is safe to use?
EDIT:
By safe - i mean mainly bug free, i.e. in terms of execution.
With GCC compilers installed, we can now proceed to install multiple versions of G++ compilers. Alternatively, you can install both GCC and G++ compilers with a single command, as shown below.
GCC has had complete support for C++17 language features since version 8. Clang 5 and later supports all C++17 language features.
In the absence of specific requirements to the contrary, I tend to use whichever version of gcc
is supplied by my (reasonably up-to-date) Linux distribution. This policy has worked pretty well for me so far.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With