https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43820
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|WONTFIX |FIXED Target Milestone|4.4.5 |5.0 Known to fail| | --- Comment #24 from Jonathan Wakely <redi at gcc dot gnu.org> --- This started working again with 5.1.0 ap.cc: In function ‘int main()’: ap.cc:7:9: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<S> p( (S*) 1234 ); ^ In file included from /home/jwakely/gcc/5.1.0/include/c++/5.1.0/memory:81:0, from ap.cc:1: /home/jwakely/gcc/5.1.0/include/c++/5.1.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^