https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89734
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 30 12:25:43 2019 New Revision: 275134 URL: https://gcc.gnu.org/viewcvs?rev=275134&root=gcc&view=rev Log: Backported from mainline 2019-03-19 Jakub Jelinek <ja...@redhat.com> PR c/89734 * c-decl.c (grokdeclarator): Call c_build_qualified_type on function return type even if quals_used is 0. Formatting fixes. * gcc.dg/pr89734.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr89734.c Modified: branches/gcc-7-branch/gcc/c/ChangeLog branches/gcc-7-branch/gcc/c/c-decl.c branches/gcc-7-branch/gcc/testsuite/ChangeLog