This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17152] Useless error message
- From: "paavola at skycomputers dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2004 13:58:13 -0000
- Subject: [Bug c++/17152] Useless error message
- References: <20040823135432.17152.paavola@skycomputers.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From paavola at skycomputers dot com 2004-08-23 13:58 -------
I neglected to include the source code:
template <int N, class T>
class vec
{
public:
int size() const { return N; }
vec(const T & t = T())
{ for(int i = 0; i < N; i++) v[i] = t; }
vec(const T * tp)
{ for(int i = 0; i < N; i++) v[i] = tp[i]; }
friend bool operator == <> ( const vec<N,T> &v1, const vec<N,T> &v2 );
friend bool operator != <> ( const vec<N,T> &v1, const vec<N,T> &v2 );
T v[N];
};
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17152