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
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
ormal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: freezer at posteo dot de
Target Milestone: ---
When a file is passed to gcc through stdin, gcc won't print any diagnostics
carets for the passed file.
Example:
//
everity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: freezer at posteo dot de
Target Milestone: ---
Created attachment 38557
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38557&action=edit
Code that causes the bug