Hi, this patch fixes the ICE and wrong code issues from PR57748. It contains two test cases. One for the ICE and one for the wrong code. Both test cases fail for all gcc versions, and are fixed with this patch.
Bootstrapped and tested on x86_64-linux without any problems. OK for trunk and the 4.8 / 4.7 branch? Regards Bernd Edlinger
2013-09-06 Bernd Edlinger <bernd.edlin...@hotmail.de> PR middle-end/57748 * expr.c (expand_assignment): Check for out of bounds access to structures. testsuite: * gcc.dg/torture/pr57748-1.c: New test. * gcc.dg/torture/pr57748-2.c: New test.
patch-pr57748.diff
Description: Binary data