aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1998-02-19 06:32:23 -0500
committerJason Merrill <jason@gcc.gnu.org>1998-02-19 06:32:23 -0500
commitf02d609c67bff8eb86987fc819c234ae5c16a39f (patch)
tree49fa6a013e08597a61345019a1a282470b3a0b62
parentc8fcb3318e586b4bf44e5600c8ead3cc9280f8f0 (diff)
downloadgcc-f02d609c67bff8eb86987fc819c234ae5c16a39f.zip
gcc-f02d609c67bff8eb86987fc819c234ae5c16a39f.tar.gz
gcc-f02d609c67bff8eb86987fc819c234ae5c16a39f.tar.bz2
oops
From-SVN: r18122
-rw-r--r--gcc/cp/typeck2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c
index a0c2bf9..35dccd7 100644
--- a/gcc/cp/typeck2.c
+++ b/gcc/cp/typeck2.c
@@ -962,7 +962,9 @@ process_init_constructor (type, init, elts)
{
register tree next1;
- if (TREE_PURPOSE (tail))
+ if (TREE_PURPOSE (tail)
+ && (TREE_CODE (TREE_PURPOSE (tail)) != INTEGER_CST
+ || TREE_INT_CST_LOW (TREE_PURPOSE (tail)) != i))
sorry ("non-trivial labeled initializers");
if (TREE_VALUE (tail) != 0)