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] |
For classes with trivial copy constructors that might have other data packed into their tail padding, we represent the copy with an assignment between arrays of unsigned char. This is valid in normal code, but constant expressions don't allow that sort of type punning, so we need to look through it. Tested x86_64-pc-linux-gnu, applying to trunk.
Attachment:
77945.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |