For openSUSE Tumbleweed run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:gcc:next/openSUSE_Tumbleweed/devel:gcc:next.repo
zypper refresh
zypper install gcc
For openSUSE Factory RISCV run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:gcc:next/openSUSE_Factory_RISCV/devel:gcc:next.repo
zypper refresh
zypper install gcc
For openSUSE Factory PowerPC run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:gcc:next/openSUSE_Factory_PowerPC/devel:gcc:next.repo
zypper refresh
zypper install gcc
For openSUSE Factory ARM run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:gcc:next/openSUSE_Factory_ARM/devel:gcc:next.repo
zypper refresh
zypper install gcc