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: PATCH to restrict handling for c++/6392


On Thu, 9 Oct 2003, Jason Merrill wrote:

> 	* c-common.c (c_build_qualified_type): Look through arrays first.
> 	(c_apply_type_quals_to_decl): Look through arrays.

Please add a C testcase (c99-restrict-2.c).  There are a couple of cases
of this bug to test, where the array is declared directly as an array of
restricted pointers and where a typedef means that the qualifier is
applied to the array type and gets passed through to the element type
instead (it is clear from C99 that both of these are valid).

This patch might or might not also fix bug 11942 which looks like the same
or a similar problem.

-- 
Joseph S. Myers
jsm@polyomino.org.uk


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