This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36662] New: [4.3/4.4 Regression] vector vs template
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2008 02:11:39 -0000
- Subject: [Bug c++/36662] New: [4.3/4.4 Regression] vector vs template
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
THis is another template regression with respect of attributes.
Testcase:
#include <altivec.h>
#ifdef WORKS
#undef vector
#define vector __attribute__((vector_size(16) ))
#endif
template <typename c> struct f {};
template <> struct f< vector float >
{
static const vector float zero;
};
template <int>
void g(void)
{
vector float t = f<vector float> :: zero;
}
--- Cut ---
This works if WORKS is defined.
--
Summary: [4.3/4.4 Regression] vector vs template
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: powerpc*-*-*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36662