https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99608
--- Comment #3 from freezer at posteo dot de ---
In my opinion the current behavior is somehow inconsistent since the carets are
displayed for included files.
Example:
// test.cpp
#include
int main(int argc, char **argv)
{
return 0;
}
$ c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99608
--- Comment #2 from freezer at posteo dot de ---
That's too bad. For my use case it would be more efficient if I passed the file
directly to gcc through stdin. There is really no way to change this, maybe
through an option?
With clang this works
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99608
Bug ID: 99608
Summary: gcc doesn't print diagnostics carets when file is
passed through stdin
Product: gcc
Version: 10.2.1
Status: UNCONFIRMED
Severity: normal