This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18610] New: bad error message
- From: "kunert at physik dot tu-dresden dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Nov 2004 14:34:19 -0000
- Subject: [Bug c++/18610] New: bad error message
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The error message:
h.cc: In function `int f()':
h.cc:17: error: no matching function for call to 'g(F<int>&)'
does not help fixing this (buggy) code:
template <class T>
struct Q
{
typedef int t;
};
template <> class Q<int>;
template <class T> class F {};
template <class T>
F< typename Q<T>::t> g( const F<T>& a );
int f()
{
F<int> a;
g(a );
}
--
Summary: bad error message
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kunert at physik dot tu-dresden dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18610