C++0x introduces the 'nullptr' constant, intended to replace a literal '0' for null pointers. Support for nullptr is being (has been?) added to gcc 4.6. However, for backward compatibility reasons, '0' will remain convertible to pointer type for the foreseeable future. As grepping for '0' is likely to be unfeasibly noisy, it would be helpful if a warning could be enabled to detect the use of '0' as a pointer type.
-- Summary: [C++0x] Add warning to facilitate nullptr conversion. Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sacolcor at provide dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44277