This is the mail archive of the gcc-patches@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] |
Hi, the problem here is that the fix for PR 18073 started to allow conversion from vector types to any other type, instead of limitting it to just intergal types. This patch fixes the problem by tightening what is allowed for reinterpret_cast. OK for trunk, 4.2 and 4.2 branch? Bootstrapped and tested on powerpc64-linux-gnu with no regressions. Thanks, Andrew Pinski ChangeLog: * typeck.c (build_reinterpret_cast_1): Only allow conversion to integeral types from vectors types. * g++.dg/ext/vector6.C: New test.
Attachment:
fixpr30016.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |