diff options
author | Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> | 2001-11-18 06:31:20 +0000 |
---|---|---|
committer | Kriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org> | 2001-11-18 06:31:20 +0000 |
commit | b3faacfdd46a1e92301c68902be2f9df9d2a513f (patch) | |
tree | 7f89f1d2e0b01d341b6845bd9af7fbc4a2e5623f /gcc/testsuite | |
parent | 873ff98777cfd6685aae1aac33d2bc4d52bcd781 (diff) | |
download | gcc-b3faacfdd46a1e92301c68902be2f9df9d2a513f.zip gcc-b3faacfdd46a1e92301c68902be2f9df9d2a513f.tar.gz gcc-b3faacfdd46a1e92301c68902be2f9df9d2a513f.tar.bz2 |
decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE when displaying error message about missing array bounds.
* decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE
when displaying error message about missing array bounds.
From-SVN: r47136
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.dg/other/array1.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/array1.C b/gcc/testsuite/g++.dg/other/array1.C new file mode 100644 index 0000000..aff960e --- /dev/null +++ b/gcc/testsuite/g++.dg/other/array1.C @@ -0,0 +1,10 @@ +// Test typeid of multidimensional array with no bounds. +// { dg-do compile } + +#include <typeinfo> + +int main() +{ + const char *s = typeid(double[][]).name(); // { dg-error "bounds|confused" } + return 0; +} |