Remove a hunk duplicated during a merge.
authorMartin Sebor <msebor@redhat.com>
Mon, 24 Feb 2020 17:18:11 +0000 (10:18 -0700)
committerMartin Sebor <msebor@redhat.com>
Mon, 24 Feb 2020 17:18:11 +0000 (10:18 -0700)
gcc/cp/ChangeLog:
* parser.c (cp_parser_check_class_key): Remove a duplicate hunk
of code.

gcc/cp/ChangeLog
gcc/cp/parser.c

index 9c212d9b0a42861a6399aad12f3a2dc12ff1f41d..0cc971dc625145bafb0c7ecb917d1cd9903a0d24 100644 (file)
@@ -3,6 +3,7 @@
        PR c++/93804
        * parser.c (cp_parser_check_class_key): Avoid issuing -Wredundant-tags
        in shared C/C++ code in headers.
+       Remove a duplicate hunk of code.
 
 2020-02-24  Marek Polacek  <polacek@redhat.com>
 
index 8e52fef70bd16c8374d7dc5d1c3134a23dae21a2..ca85d899427d3b4b33c543834eb3703c1ee5abc6 100644 (file)
@@ -31021,13 +31021,6 @@ cp_parser_check_class_key (cp_parser *parser, location_t key_loc,
       && class_key != union_type)
     return;
 
-  /* Only consider the true class-keys below and ignore typename_type,
-     etc. that are not C++ class-keys.  */
-  if (class_key != class_type
-      && class_key != record_type
-      && class_key != union_type)
-    return;
-
   tree type_decl = TYPE_MAIN_DECL (type);
   tree name = DECL_NAME (type_decl);
   /* Look up the NAME to see if it unambiguously refers to the TYPE