Code: Alles auswählen
/* file.c */
#include <stdlib.h> // Ja, nur diese Zeile mit Zeilenumbruch am Ende
fatal error: error in backend: IO failure on output stream: not enough memory
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang file.c -E
Exception Code: 0xE0000001
Wenn man sich das Ganze als Datei generieren lässt, passiert dies allerdings nicht. Nur beim Output direkt in das Terminal.
clang file.c -E -o out.txt
Auf gcc.godbolt.org konnte ich das Szenarion nicht reproduzieren. Aber das hat vermutlich eher damit zutun, wie dort der Output weiterverarbeitet wird.
In gcc existiert dieses Problem nicht.
Könnt ihr das vielleicht bestätigen?