bug report
Daniel Sievers
DSievers@nvidia.com
Fri Jan 23 15:58:00 GMT 2004
Hi,
attached is the preprocessed file as well as the compiler output.
The bug looks similar to one of the known frequent ones, although there seem
to be some differences.
That is because this one seems to be related to the use of the [] operator
inside a constructor.
// the following does not work...
Vec3 vec8( Vec3(vec1[0], vec1[1], vec1[2]) );
// any one of the following modifications makes it work...
Vec3 vec7( Vec3((int)vec1[0], vec1[1], vec1[2]) );
Vec3 vec6( Vec3(vec1.operator[](0), vec1[1], vec1[2]) );
Vec3 vec7( (Vec3((int)vec1[0], vec1[1], vec1[2])) );
See the attached files for the full code.
Thanks.
Daniel Sievers
btw, excuse the email. i couldn't see how to submit files to the bug
database.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: out.txt
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20040123/2e1f93bb/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vec.ii
Type: application/octet-stream
Size: 1114 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20040123/2e1f93bb/attachment.obj>
More information about the Gcc-bugs
mailing list