https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81622
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 41875 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41875&action=edit gcc8-pr81622.patch There are many other issues in that function. As for ARRAY_TYPE, do you have a testcase that would show how you could end up with ARRAY_TYPE there? I mean, C/C++ array-to-pointer conversion should happen already before this function is called. Or can say passing reference-to-array result in that? There is another issue I haven't fixed, because it means adjusting hundreds of tests: error ("Builtin function %s not supported in this compiler configuration", should not use capital letter in Builtin, that is against GCC diagnostic conventions.