https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93824

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot 
gnu.org

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Ah, I see.  I'm not sure there's anything I can do about the first case -- the
warning there is by design.  But the warning in the second case is not
intended:

  $ cat test2.cc && gcc -S -Wall -Wextra -Wredundant-tags test2.cc
  void f (struct S*);   // bogus -Wredundant-tags

  test2.cc:1:9: warning: redundant class-key ‘struct’ in reference to ‘struct
S’ [-Wredundant-tags]
      1 | void f (struct S*);   // bogus -Wredundant-tags
        |         ^~~~~~
        |         ------

I should be able to fix this.

Out of curiosity, what is your interest in -Wredundant-tag?  (Are you hoping to
use it to clean up a code base or something else?)

Reply via email to