https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918
--- Comment #1 from Rimvydas (RJ) <rimvydas.jas at gmail dot com> --- Also several programs report spurious warnings: <built-in>: warning: type of '__builtin_realloc' does not match original declaration [-Wlto-type-mismatch] /opt/nwp/gcc11/include/stdlib.h:550:14: note: type mismatch in parameter 1 550 | extern void *realloc (void *__ptr, size_t __size) | ^ /opt/nwp/gcc11/include/stdlib.h:550:14: note: 'realloc' was previously declared here /opt/nwp/gcc11/include/stdlib.h:550:14: note: code may be misoptimized unless '-fno-strict-aliasing' is used that seem to go away if arguments are swapped at gcc/fortran/f95-lang.c:982 ftype = build_function_type_list (pvoid_type_node, size_type_node, pvoid_type_node, <--- NULL_TREE); So far could not extract reasonably sized test-case.