Commit 201e6861 by Jason Merrill Committed by Jason Merrill

* decl.c (build_enumerator): Tweak diagnostic.

From-SVN: r238873
parent 35909ec3
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
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment