projects
/
platform
/
upstream
/
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
a0c2bf9
..
35dccd7
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)