This is the mail archive of the gcc@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]

Trivial test fails


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;
  }
}

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