aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/decl.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 62c6e53..71aa084 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index c7bad41..d2ba7ba 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -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;
}