[Bug c++/16070] Bad error message
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jun 19 01:09:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-19 01:08 -------
I should note that ICC 6.0 gives:
pr16070.cc
pr16070.cc(11): error: no instance of overloaded function "Bar" matches the argument list
argument types are: (<unknown-type>)
Bar(std::endl);
^
compilation aborted for pr16070.cc (code 2)
Here is the reduced source:
template <class T> void f(T);
template<typename T>
void Bar(const T& t) {}
void Bar(int i) {}
int main() { Bar(f); }
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2004-06-19 01:08:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16070
More information about the Gcc-bugs
mailing list