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

Reply via email to