aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2003-10-09 04:39:34 -0400
committerJason Merrill <jason@gcc.gnu.org>2003-10-09 04:39:34 -0400
commit2df6848e22f1ea6fd8a43284a85986337de4a425 (patch)
treed0f3a81c3e9f324503e577709263592a180379ee
parent4b011bbf6bbe244569bf18209dc7bce6a98dd224 (diff)
downloadgcc-2df6848e22f1ea6fd8a43284a85986337de4a425.zip
gcc-2df6848e22f1ea6fd8a43284a85986337de4a425.tar.gz
gcc-2df6848e22f1ea6fd8a43284a85986337de4a425.tar.bz2
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
-rw-r--r--gcc/testsuite/g++.dg/ext/restrict1.C7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ext/restrict1.C b/gcc/testsuite/g++.dg/ext/restrict1.C
new file mode 100644
index 0000000..049af1f
--- /dev/null
+++ b/gcc/testsuite/g++.dg/ext/restrict1.C
@@ -0,0 +1,7 @@
+// PR c++/6392
+// { dg-do compile }
+
+struct A
+{
+ int* __restrict__ data[10];
+};