[Bug libstdc++/43820] [4.4/4.5/4.6 Regression] auto_ptr used with incomplete type no longer triggers warning
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 20 12:07:00 GMT 2017
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;
^
More information about the Gcc-bugs
mailing list