decl.c (grokdeclarator): Fix a typo in a comment.
authorMartin Sebor <msebor@redhat.com>
Thu, 26 Jan 2017 00:02:25 +0000 (00:02 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Thu, 26 Jan 2017 00:02:25 +0000 (17:02 -0700)
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
gcc/cp/decl.c

index 11c30ca6362e93c4d4e3ba82a327f3640d78ba73..7933e02e57de76a86f7a669681cb0e9c16a0e7c3 100644 (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>
 
index 39e7fbd96003ec8a982dfe4307c9a2ef0d8c9cd3..44aefd82b73eeaf12bd5cb91695692843632a96e 100644 (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);