From 9f35c9535f663ee87b8636d14a703707893dfd5a Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Thu, 26 Jan 2017 00:02:25 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 3 +-- gcc/cp/decl.c | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) 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); -- 2.30.2