https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85955
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Mon Jun 4 18:03:24 2018 New Revision: 261165 URL: https://gcc.gnu.org/viewcvs?rev=261165&root=gcc&view=rev Log: 2018-06-04 Richard Biener <rguent...@suse.de> PR tree-optimization/85955 * builtins.c (fold_builtin_sincos): Convert pointers to destination to appropriate type before dereferencing. * gcc.dg/pr85955.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/pr85955.c Modified: trunk/gcc/ChangeLog trunk/gcc/builtins.c trunk/gcc/testsuite/ChangeLog