[PATCH c++] Reduce -Weffc++ Rule 12 false positives

Andrew Pinski pinskia@physics.uc.edu
Wed Feb 8 00:04:00 GMT 2006


> Depends on if you care about performance overhead due to unnecessary calls to 
> default constructors (my point) or if you care about possibly partially 
> constructed objects (your point, but a headache especially with mutable 
> members). IMHO for the latter, you more need something like Purify or 
> valgrind. However, unnecessary default constructor calls are better spotted 
> by the compiler. 

Huh? the default constructor for integer types is assigning it to zero
but then again most of the time dead store elimination can remove the
dead store so it really does not matter in general.

-- Pinski



More information about the Gcc-patches mailing list