* decl.c (check_elaborated_type_specifier): Remove redundant check.
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Sep 2005 10:30:09 +0000 (10:30 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Sep 2005 10:30:09 +0000 (10:30 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103939 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl.c

index 6e13cfd..4c200d7 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-06  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
+       * decl.c (check_elaborated_type_specifier): Remove redundant check.
+
 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/23056
index 1d887bf..1aa9b8d 100644 (file)
@@ -9146,8 +9146,7 @@ check_elaborated_type_specifier (enum tag_types tag_code,
       return error_mark_node;
     }
   else if (TREE_CODE (type) != ENUMERAL_TYPE
-          && tag_code == enum_type
-          && tag_code != typename_type)
+          && tag_code == enum_type)
     {
       error ("%qT referred to as enum", type);
       error ("%q+T has a previous declaration here", type);