Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should i use the latest GCC version ( in general, and specifically today )

Tags:

c++

gcc

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.

like image 498
dan12345 Avatar asked Jan 17 '12 09:01

dan12345


People also ask

Can I have multiple versions of GCC?

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.

Does GCC 4.8 support C++17?

GCC has had complete support for C++17 language features since version 8. Clang 5 and later supports all C++17 language features.


1 Answers

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.

like image 81
NPE Avatar answered Oct 19 '22 19:10

NPE