https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100646
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic, error-recovery, | |ice-on-invalid-code CC| |egallager at gcc dot gnu.org --- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> --- It took a bit of effort to get a text editor to save the file without a newline at EOF, but once I did that, the error for me was an ICE instead of a regular error: 100646.c:1: internal compiler error: in cpp_directive_only_process, at libcpp/lex.c:3950 1 | int main() | I'll attach the full output as an attachment. This happens regardless of whether I compile it as plain C, or C++. (although it has been awhile since I last rebuilt GCC, so that could be the issue...) Here's my version and configuration info: $ /usr/local/bin/gcc -v Using built-in specs. COLLECT_GCC=/usr/local/bin/gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin19.6.0/11.0.0/lto-wrapper Target: x86_64-apple-darwin19.6.0 Configured with: ../configure --disable-werror --disable-werror-always --enable-languages=all,c,c++,objc,obj-c++,lto --enable-stage1-checking=release,rtl -C --with-system-libunwind --enable-secureplt --enable-frame-pointer --enable-debug --without-isl --disable-host-shared --disable-maintainer-mode --disable-default-pie --with-ld64 --without-pic --enable-target-optspace --disable-nls --with-system-zlib --with-libiconv-prefix=/opt/local --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --enable-lto --with-build-config=bootstrap-debug --enable-objc-gc --enable-libada --enable-libssp --disable-libsanitizer --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk --disable-gcov : (reconfigured) ../configure --disable-werror --disable-werror-always --enable-languages=all,c,c++,objc,obj-c++,lto --enable-stage1-checking=release,rtl -C --with-system-libunwind --enable-secureplt --enable-frame-pointer --enable-debug --without-isl --disable-host-shared --disable-maintainer-mode --disable-default-pie --with-ld64 --without-pic --enable-target-optspace --disable-nls --with-system-zlib --with-libiconv-prefix=/opt/local --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --enable-lto --with-build-config=bootstrap-debug --disable-objc-gc --enable-libada --enable-libssp --disable-libsanitizer --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk --disable-gcov Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.0.0 20200920 (experimental) (GCC) $