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]

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.





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