------- Comment #1 from pinskia at gcc dot gnu dot org 2009-04-16 18:24 ------- First there are a couple of issues here: 1) accepts invalid code: using namespace std;
2) >foo.cc:3: error: ifstream does not name a type Yes that should change if ifstream is not defined at all but we still want to give the error message we currently give for: int ifstream; ifstream x; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39729