gcc@11

GNU Compiler Collection v11 for C, C++, and Fortran compilation

brewmacoslinux
Try with needOr install directly
Source

About

GNU compiler collection

Commands

gcc-11g++-11gfortran-11gcov-11

Examples

Compile a C program to an executable$ gcc-11 -o myprogram myprogram.c
Compile C++ code with optimization flags$ g++-11 -O2 -o app main.cpp lib.cpp
Compile Fortran code$ gfortran-11 -o program program.f90