mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-18 23:51:08 +08:00
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:
parent
4b011bbf6b
commit
2df6848e22
7
gcc/testsuite/g++.dg/ext/restrict1.C
Normal file
7
gcc/testsuite/g++.dg/ext/restrict1.C
Normal file
@ -0,0 +1,7 @@
|
||||
// PR c++/6392
|
||||
// { dg-do compile }
|
||||
|
||||
struct A
|
||||
{
|
||||
int* __restrict__ data[10];
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user