Re: Possible messaging changes

2009-04-10 Thread Ian Lance Taylor
Arthur Schwarz writes: > # include > # include > > using namespace std; > > ifstream x; > ifstream& y = x; > > int main(int argc, char** argv) { > y = x; > return 0; > } > > g++.3.4.4 output > m1.cpp: In member function `std::basic_ios >& > std::basic_ios >::operator=(const > std::basic_

Re: Possible messaging changes

2009-04-10 Thread Dave Korn
Arthur Schwarz wrote: > /* > * m3.cpp > */ > > # include > # include > > using namespace std; > > ifstream x; > ifstream y(); > If 'std::ifstream' not found, why is 'std::ifstream y();' legal? Ooh, I know this one. It's because it's not a definition of an ifstream object constructed