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 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


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