Is a C++ compiler/linker allowed to remove unused methods?
<p>Is a C++ compiler or linker (by any C++ standard) allowed to remove an unused method?
Compilers seem to be allowed to remove unused static functions, linkers are allowed to remove unused functions. But i have found no information what it looks like for methods of classes. When the method is virtual this gets really interesting.</p>