mirror of git://gcc.gnu.org/git/gcc.git
* decl.c (build_enumerator): Tweak diagnostic.
From-SVN: r238873
This commit is contained in:
parent
35909ec3a3
commit
201e6861f9
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue