This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c++/16070] Bad error message


------- Additional Comments From bangerth at dealii dot org  2004-06-19 19:33 -------
Actually, the error message explains in very clear and plain terms 
what is going on: std::endl is an overloaded function, so when you 
want to pass its address to something else, you have to pick on 
of these. This isn't possible based on the conversion to type 
'int'. The compiler knows that the template can't match, so it 
has to match against the only other candidate available. 
 
In my view, this error message is close to perfect. If someone feels 
similarly, feel free to close this bug. 
 
W. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16070


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