This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14217] New: Assignment to vector references fails
- From: "tjw at omnigroup dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Feb 2004 19:42:09 -0000
- Subject: [Bug c++/14217] New: Assignment to vector references fails
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
#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