https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81101
Bug ID: 81101 Summary: ICE with -fself-test=. Product: gcc Version: 8.0 Status: UNCONFIRMED Keywords: ice-checking Severity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org CC: dmalcolm at gcc dot gnu.org Target Milestone: --- Should this give a more user-friendly error? $ /home/jwakely/gcc/latest/bin/gcc -fself-test=. -c -x c - <<< 'int i;' /home/jwakely/src/gcc/gcc/gcc/selftest.c:305: test_locate_file: FAIL: unable to open file: ./example.txt cc1: internal compiler error: in fail_formatted, at selftest.c:62 0x13dcde6 selftest::fail_formatted(selftest::location const&, char const*, ...) /home/jwakely/src/gcc/gcc/gcc/selftest.c:62 0x13dd157 selftest::read_file(selftest::location const&, char const*) /home/jwakely/src/gcc/gcc/gcc/selftest.c:164 0x13dd48f test_locate_file /home/jwakely/src/gcc/gcc/gcc/selftest.c:305 0x13dd48f selftest::selftest_c_tests() /home/jwakely/src/gcc/gcc/gcc/selftest.c:320 0x138a47b selftest::run_tests() /home/jwakely/src/gcc/gcc/gcc/selftest-run-tests.c:55 0xbe37e2 toplev::run_self_tests() /home/jwakely/src/gcc/gcc/gcc/toplev.c:2075 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.