Trivial test fails

nbecker@fred.net nbecker@fred.net
Thu Oct 5 09:53:00 GMT 2000


I just tried this with the latest CVS with libstdc++-v3.

This program should terminate on reading EOF, but it doesn't:
(Note that with gcc-2.95.2 and libstdc++v2 it would work)

#include <iostream>
using std::cin;
using std::cout;

main () {
  while (cin) {
    double x;
    cin >> x;
    cout << x;
  }
}


More information about the Gcc mailing list