[Bug c++/91746] Bogus error due to a type and variable with the same name

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 11 22:41:00 GMT 2019


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
No GCC is correct. this is invalid C++ though there is no diagnostic required
by the C++ standard.   GCC checks for this case while the other two compilers
you citied don't.


More information about the Gcc-bugs mailing list