This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/36662] New: [4.3/4.4 Regression] vector vs template


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]