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

--- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #0)
> std::auto_ptr is marked as deprecated in
> libstdc++-v3/include/backward/auto_ptr.h
> and
> 
> #include <memory>
> 
> int main()
> {
>   int i;
>   std::auto_ptr<int> x;
> }
> 
> warns about this even without -Wsystem-headers.  What is worse, since GCC 5.3

Perhaps something changed in the location passed to the warning? Or there
should be an explicit check of whether the location of the declaration is at a
system header.

> adding -Werror makes this an error while with 5.2 it was a warning despite
> -Werror:

Sorry, how is this a bug and not simply working as intended?

Reply via email to