https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77462
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |NEW Last reconfirmed| |2016-09-02 CC| |manu at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- I'm pretty sure there was an open bug already about this but I cannot find it. What is even worse is that, even without #line, we cannot display the caret line if the file is preprocessed and the original files cannot be found: # 1 "filenotavailable.cc" # 1 "<built-in>" # 1 "<command-line>" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 1 "<command-line>" 2 # 1 "filenotavailable.cc" int main() { static_assert( 2 + 2 == 5, "oops" ); } $ g++ filenotavailable.ii -std=c++11 filenotavailable.cc: In function ‘int main()’: filenotavailable.cc:3:3: error: static assertion failed: oops