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 report


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.


Attachment: out.txt
Description: Text document

Attachment: vec.ii
Description: Binary data


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