diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-02-24 00:37:57 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-02-24 00:37:57 +0000 |
commit | d51ceff907daa1b10dcfb8e1b4be90f090b11d77 (patch) | |
tree | 257bcddb445a10cbf6ae913ca2fb48b84eff6a51 /gcc | |
parent | c48396fd7adac6de5174c03f4f1d00ddc165041e (diff) | |
download | gcc-d51ceff907daa1b10dcfb8e1b4be90f090b11d77.tar.gz |
* typeck2.c (process_init_constructor): Fix labeled init check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18214 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/typeck2.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d4f4fee74f3..75ff86cdd05 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +Tue Feb 24 00:36:43 1998 Jason Merrill <jason@yorick.cygnus.com> + + * typeck2.c (process_init_constructor): Fix labeled init check. + Mon Feb 23 05:08:55 1998 Jason Merrill <jason@yorick.cygnus.com> * pt.c, call.c, decl.c, method.c, cp-tree.h: Remove unused NARGS diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index 35dccd75f2a..21f90cb51e8 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -1044,6 +1044,7 @@ process_init_constructor (type, init, elts) continue; if (TREE_PURPOSE (tail) + && TREE_PURPOSE (tail) != field && TREE_PURPOSE (tail) != DECL_NAME (field)) sorry ("non-trivial labeled initializers"); |