GNU/Linux Ubuntu 24.04 Installing GCC 15 from Source – QuickStart Guide
How to Install GCC 15.x from Source on Ubuntu 24.04 Noble LTS GNU/Linux – Step by step Tutorial.
And the GCC 15 for Ubuntu 24.04 is a Compilers Collection currently supporting C, C++, Objective-C, Objective-C++, Fortran, Ada, D, Go, and BRIG (HSAIL) Languages.
Finally, GCC 15 includes several New Features, Canges, and Fixes that you can consult on the GNU GCC Documentatio.

1. Launching Terminal
Open a Shell Session
(Press “Enter” to Execute Commands)sudo apt update
2. Querying System GCC
First, find out what the actual System GCC
Play:which gcc
Take Note of the PATH to use after installation for switching the System GCC.
Possibly to Check the current GCC version issue:gcc -v
Contents