This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PCH bug, cont'd


Another way to reproduce the PCH bug is to change '\n' to endl in the 
g++.dg/pch testsuite.

----- begin gcc/gcc/testsuite/g++.dg/pch/system-1.C
#include "system-1.H"

int main()
{
    std::cout << "hello world!" << '\n';
    return 0;
}
----- end

The rather unusual way that this is written (who writes a separate '\n'
instead of an endl?) make me think that someone has already encountered
this but decided not to think about it :)

- Jon


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]