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++/14217] New: Assignment to vector references fails


#ifndef __APPLE_CC__
#include <altivec.h>
#endif

static void v(vector float &q, vector float r)
{
    q = r;
}

Fails with:

vector-asign.cpp: In function `void v(float __vector__*, float __vector__)':
vector-asign.cpp:7: error: assignment of read-only parameter `q'
vector-asign.cpp:7: error: cannot convert `float __vector__' to `float __vector__*' in assignment

-- 
           Summary: Assignment to vector references fails
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tjw at omnigroup dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.2.0
  GCC host triplet: powerpc-apple-darwin7.2.0
GCC target triplet: powerpc-apple-darwin7.2.0


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


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