https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87250
Bug ID: 87250 Summary: Internal compiler error with -Os -fsyntax-only Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dennis at felsin9 dot de Target Milestone: --- echo "#include <atomic>" | g++ -Os -fsyntax-only -x c++ -c - In file included from <stdin>:1: /usr/include/c++/8.2.1/atomic: In constructor ‘constexpr std::__atomic_base<_IntTp>::__atomic_base(std::__atomic_base<_IntTp>::__int_type) [with _ITp = bool; std::__atomic_base<_IntTp>::__int_type = bool]’: /usr/include/c++/8.2.1/atomic:1370:1: internal compiler error: Segmentation fault } // namespace ^ Please submit a full bug report, with preprocessed source if appropriate. Workaround is to disable -Os when checking syntax only.