On a Debian GNU/Linux testing system on amd64, the code from [bugs:#3470] crashes the preprocessor when compiled using sdcc from current svn:
philipp@notebook6:/tmp$ ~/sdcc-trunk/sdcc/bin/sdcc test2.c
cc1: files.cc:1059: cpp_dir* search_path_head(cpp_reader*, const char*, int, include_type): Assertion `dir' failed.
cpp: internal compiler error: Aborted signal terminated program cc1
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <http://sourceforge.net/tracker/?atid=100599&group_id=599&func=browse> for instructions.
at 1: warning 190: ISO C forbids an empty source file
subprocess error 1024
Also, the error message is not very helpful, as it asks to "submit a full bug report, with preprocessed source", which obviously won't work or make sense when the crash is in the preprocessor.
Hmm, I now see this issue on any file that has an #include, even if it is otherwise empty:
Gives:
Manually supplying an include path, even just -I. is a workaround.
P.S.: This only works if the supplied include path is a directory that actually exists.
Last edit: Philipp Klaus Krause 2022-11-06
fixed in [r13893 ].
Related
Commit: [r13893]