This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++/libstdc++ PATCH to function cv-quals handling (c++/37806, libstdc++/39310)


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" }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]