projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8fcb33
)
oops
author
Jason Merrill
<jason@gcc.gnu.org>
Thu, 19 Feb 1998 11:32:23 +0000
(06:32 -0500)
committer
Jason Merrill
<jason@gcc.gnu.org>
Thu, 19 Feb 1998 11:32:23 +0000
(06:32 -0500)
From-SVN: r18122
gcc/cp/typeck2.c
patch
|
blob
|
history
diff --git
a/gcc/cp/typeck2.c
b/gcc/cp/typeck2.c
index a0c2bf99aba6812e4b85a0bcbf346d7be8ee9996..35dccd75f2a512b7e966338bbe775c44ff7c4637 100644
(file)
--- 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)