This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++/libstdc++ PATCH to function cv-quals handling (c++/37806, libstdc++/39310)
- From: Jason Merrill <jason at redhat dot com>
- To: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 31 Mar 2009 15:05:50 -0400
- Subject: Re: C++/libstdc++ PATCH to function cv-quals handling (c++/37806, libstdc++/39310)
- References: <49D26108.7000406@redhat.com>
And ChangeLog and test for the last hunk of the patch:
2009-03-31 Jason Merrill <jason@redhat.com>
* decl.c (grokdeclarator): Reject pointer to qualified function
type.
Index: testsuite/g++.dg/other/typedef2.C
===================================================================
*** testsuite/g++.dg/other/typedef2.C (revision 0)
--- testsuite/g++.dg/other/typedef2.C (revision 0)
***************
*** 0 ****
--- 1,3 ----
+ typedef void fn() const;
+
+ fn* fp; // { dg-error "pointer.*qualified function type" }