decl.c (grokdeclarator): Fix a typo in a comment.

gcc/cp/ChangeLog:
	* decl.c (grokdeclarator): Fix a typo in a comment.
This line, and those below, will be ignored--

M    ChangeLog
M    decl.c

From-SVN: r244912
This commit is contained in:
Martin Sebor 2017-01-26 00:02:25 +00:00 committed by Martin Sebor
parent dbe81dbe24
commit 9f35c9535f
2 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,6 @@
2017-01-25 Martin Sebor <msebor@redhat.com>
PR c++/71290
* decl.c (grokdeclarator): Warn on flexible array members.
* decl.c (grokdeclarator): Fix a typo in a comment.
2017-01-25 Jakub Jelinek <jakub@redhat.com>

View File

@ -11802,12 +11802,12 @@ grokdeclarator (const cp_declarator *declarator,
error ("flexible array member in union");
type = error_mark_node;
}
else
else
{
/* Array is a flexible member. */
if (in_system_header_at (input_location))
/* Do not warn flexible them in system headers because glibc
uses them. */;
/* Do not warn on flexible array members in system
headers because glibc uses them. */;
else if (name)
pedwarn (input_location, OPT_Wpedantic,
"ISO C++ forbids flexible array member %<%s%>", name);