This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Trying to send a bug report (tieing cin to cout is broken)


I tried to send a bug report regarding libstdc++.
However in the FAQ there is no topic about it.
Reading the web site I get into
http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl

After filling out the form and sending the bug I got:
 
Your problem report has not been sent.

 Fix the following problems, then submit the problem report again:

       Submitter-Id is 'unknown'

However, I see no way to get an ID.

BTW, here's the bug:
-----------------------------
Initially cin is tied to cout but this doesn't
work. Automatic flushing of cout doesn't happen right
before reading with cin.
Version: 2.90.7
Env: gcc-2.95.2, Linux x86

Example:
#include <iostream>

int main()
{
// 27.3.1 - Narrow stream objects [lib.narrow.stream.objects]
//
// istream cin;
//
// -1- The object cin controls input from a stream buffer associated
//     with the object stdin, declared in <cstdio>.
//
// -2- After the object cin is initialized, cin.tie() returns &cout.
//     Its state is otherwise the same as required for ios_base::init
//     (lib.basic.ios.cons).

    if (std::cin.tie() != &std::cout) {
       std::cout << "initial state of cin is broken" << std::endl;
    }
    else {
       std::cout << "cin is tied to cout if QQQ follows here:" << std::endl;
    }
    std::cout << "QQQ";
    int x;
    std::cin >> x;
    std::cout.flush();
    std::cout << "This must appear BEFORE second input";
    std::cin >> x;
    std::cout << "done";
}
-----------------------------

Beside the bug itself:
How to report a bug?

Hope it helps
-- 
Nicolai M. Josuttis          	http://www.josuttis.de/
Solutions in Time        	mailto:solutions@josuttis.de

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