http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56373
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-02-18 AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot |gnu.org |com Ever Confirmed|0 |1 --- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-02-18 16:05:40 UTC --- So confirming the first issue. I have a simple patch in testing for it. About the second issue, it was definitely discussed somewhere else too: there is always a tension between consistently treating in a similar way elementary types and classes and avoiding warning for common patterns like RAII.