re PR c/89734 (const qualifier on return type not erased inside __typeof__)
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 Mar 2019 06:55:31 +0000 (07:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 Mar 2019 06:55:31 +0000 (07:55 +0100)
commit855cd9b166c70a6e5a90e342314e71203f15b8f4
tree9ddfbc3610e58fb61e81cdbfc2f7416da95060ee
parent7babd3e4f197e59638addba04717609adebde4de
re PR c/89734 (const qualifier on return type not erased inside __typeof__)

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.

From-SVN: r269789
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr89734.c [new file with mode: 0644]