From: Martin Sebor Date: Thu, 26 Jan 2017 00:02:25 +0000 (+0000) Subject: decl.c (grokdeclarator): Fix a typo in a comment. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f35c9535f663ee87b8636d14a703707893dfd5a;p=gcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 11c30ca6362..7933e02e57d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,7 +1,6 @@ 2017-01-25 Martin Sebor - 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 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 39e7fbd9600..44aefd82b73 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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);