This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: altivec still broken?!
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: gcc at gcc dot gnu dot org, rth at redhat dot com
- Date: Thu, 29 Apr 2004 19:02:00 +0200
- Subject: Re: altivec still broken?!
- References: <20040426225626.GA23624@redhat.com>
I actually found a bug that is solved in my implementation of comptypes.
It is a contrived example and it is in C++, but is indeed a bug.
1 template <class T> class X {
2 };
3
4 template <> class X<__ev64_opaque__> {
5 };
6
7 typedef int v2si __attribute__ ((vector_size (8)));
8
9 template <> class X<v2si> {
10 };
With my patch, this compiles. With rth's proposed resolution
of comptypes for vector types, instead it gives a wrong error
/home/utente/aaa.c:9: error: redefinition of `class X<int __vector__>'
/home/utente/aaa.c:4: error: previous definition of `class X<int
__vector__>'
Paolo