This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: PCH bug, cont'd
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: jsalz at mit dot edu
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 28 Jan 2003 21:22:33 +0100
- Subject: Re: PCH bug, cont'd
Another way to reproduce the PCH bug is to change '\n' to endl in the
g++.dg/pch testsuite.
This is, unfortunately, a known issue: other/9274.
The rather unusual way that this is written (who writes a separate '\n'
instead of an endl?)
This is _not_ at all obvious: endl outputs a newline _and_ additionally
flushes the output buffer: for efficiency sake the indiscriminate use of
endl is discouraged in any good book about the C++ standard library.
Paolo.