re PR middle-end/6392 (Problems with __restrict__ type qualifier (array))

PR c++/6392
        * cp/tree.c (build_cplus_array_type): Handle all quals the same.
        (cp_build_qualified_type_real): Look through arrays first.
        * c-common.c (c_build_qualified_type): Look through arrays first.
        (c_apply_type_quals_to_decl): Look through arrays.

From-SVN: r72260
This commit is contained in:
Jason Merrill 2003-10-09 04:39:34 -04:00
parent 4b011bbf6b
commit 2df6848e22

View File

@ -0,0 +1,7 @@
// PR c++/6392
// { dg-do compile }
struct A
{
int* __restrict__ data[10];
};