* decl.c (build_enumerator): Tweak diagnostic.
authorJason Merrill <jason@redhat.com>
Fri, 29 Jul 2016 15:10:58 +0000 (11:10 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 29 Jul 2016 15:10:58 +0000 (11:10 -0400)
From-SVN: r238873

gcc/cp/ChangeLog
gcc/cp/decl.c

index 62c6e53..71aa084 100644 (file)
@@ -1,5 +1,7 @@
 2016-07-29  Jason Merrill  <jason@redhat.com>
 
+       * decl.c (build_enumerator): Tweak diagnostic.
+
        PR c++/72457
        * init.c (expand_aggr_init_1): Only handle value-init of bases.
        * constexpr.c (build_data_member_initialization): Handle multiple
index c7bad41..d2ba7ba 100644 (file)
@@ -13590,7 +13590,7 @@ build_enumerator (tree name, tree value, tree enumtype, tree attributes,
              if (! INTEGRAL_OR_UNSCOPED_ENUMERATION_TYPE_P
                  (TREE_TYPE (value)))
                {
-                 error ("enumerator for %qD must have integral or "
+                 error ("enumerator value for %qD must have integral or "
                         "unscoped enumeration type", name);
                  value = NULL_TREE;
                }