I tried to compile this test program and expected to get a message that std::auto_ptr is deprecated. To my surprise it compiled successfully without any warning. Adding -Wall or -Wdeprecated options didn't help. Am I missing something?
use of a deprecated library or language component is not a required diagnostic, it is a quality of implementation issue. Submit a bug report to gcc ( technically libstdc++, in this case), if you feel that this is wrong (I'd say this is at least inconsistent: things that were deprecated in 98 do print warnings at compile time in libsdc++)
Thanks for the responses. I was hoping to compile my 8 years old C++ project with new (C++11) compiler, get deprecated warnings and quickly fix them. But it seems the things are not that easy.