]> gcc.gnu.org Git - gcc.git/commitdiff
* typeck2.c (process_init_constructor): Fix labeled init check.
authorJason Merrill <jason@yorick.cygnus.com>
Tue, 24 Feb 1998 00:37:57 +0000 (00:37 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 24 Feb 1998 00:37:57 +0000 (19:37 -0500)
From-SVN: r18214

gcc/cp/ChangeLog
gcc/cp/typeck2.c

index d4f4fee74f3a8266a644d79ed732a1aea9f287d2..75ff86cdd0532aec37c23d58e3bbe154c9dfe7f5 100644 (file)
@@ -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
index 35dccd75f2a512b7e966338bbe775c44ff7c4637..21f90cb51e85d061b7961b6a8b2fcceb15e37667 100644 (file)
@@ -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");
 
This page took 0.078063 seconds and 5 git commands to generate.