https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124238
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Andreas Schwab from comment #4)
> There is some leftover debugging that may cause this:
>
> @@ -1898,6 +1905,12 @@ cdftext::process_file( filespan_t mfile, int output,
> bool second_pass ) {
>
> // parse CDF directives
> while( mfile.next_line() ) {
> + if( false ) {
> + std::string line( mfile.ccur(), const_cast<const char *>(mfile.eol) );
> + std::cerr << __func__ << ": "
> + << mfile.lineno() << ":" << mfile.colno() << ": "
> + << line;
> + }
> yylloc = mfile.as_location();
> auto copied = parse_copy_directive(mfile);
> if( copied.parsed && copied.fd != -1 ) {
Why doesn't it use instead
dbgmsg("%s: " GCC_PRISZ "u:" GCC_PRISZ "u: %.*s", __func__,
(fmt_size_t)mfile.lineno(),
(fmt_size_t)mfile.colno(), int(mfile.eol - mfile.ccur()), mfile.ccur());
and no <iostream>?
Consistency is good.