* decl.c (build_enumerator): Tweak diagnostic.

From-SVN: r238873
This commit is contained in:
Jason Merrill 2016-07-29 11:10:58 -04:00 committed by Jason Merrill
parent 35909ec3a3
commit 201e6861f9
2 changed files with 3 additions and 1 deletions

View 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

View 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;
}