Take:
#define vf4 __attribute__((vector_size(16) )) float
template< class T > inline T Abs( const T A )
{
    return (A>=(T)0) ? A : -A;
}
template<> inline vf4 Abs( const vf4 A) { }

-- CUT ---

If we change vf4 to be a typedef it works.


-- 
           Summary: vector_size attribute vs specialization
           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


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38260

Reply via email to