WinAVR is outdated, use Atmel Studio instead.
If you really want to continue with WinAVR, find gcc
or g++
executable and run it with -v
command line argument, then tell us what version it reports. Note, that Deleted functions supported in GCC since version 4.4 (link).
Anyway, you also must add -std=gnu++0x
or -std=c++11
or -std=gnu++11
parameters when compiling to use C++11 features, or -std=c++1y
or -std=gnu++1y
to enable C++14 (C++1y) features.