From f02d609c67bff8eb86987fc819c234ae5c16a39f Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 19 Feb 1998 06:32:23 -0500 Subject: oops From-SVN: r18122 --- gcc/cp/typeck2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc') 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) -- cgit v1.1