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

Possible messaging changes

2009-04-10 Thread Arthur Schwarz
In light of the foolhardy commitment I made, here are some reprehensible diagnostic messages and the superb recanting of the obvious. As always, the messaging and comments are gratuitously provided and I hope accepted in the same manner. Two notes (made before): 1: Some messages are needlessl