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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=56468
            Summary|Undeclared library types    |std::type_info is
                   |accepted in namespace std   |implicitly declared
   Last reconfirmed|2012-04-12 00:00:00         |2021-3-5

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Adjusting the summary because this is specific to std::type_info, it doesn't
happen for other types.

I think there's some historical reason that G++ pre-defines std::type_info, but
maybe we could make that only valid in system headers. It still causes bugs
even then, because libstdc++ can accidentally rely on the G++ behaviour, which
doesn't work with other compilers (e.g PR 56468).

Reply via email to