Warning on C++ catch by value on non primitive types

Nathan Sidwell nathan@codesourcery.com
Thu Oct 13 10:55:00 GMT 2005


Mike Stump wrote:

> Look at the parser (gcc/cp/parser.c:cp_parser_handler) and set a  break 
> point there, follow it down into semantic processing, pick a  nice place 
> to do the checking, and then add the code to check it.

look at finish_handler_parms in semantics.c

> For it to be accepted, others would have to agree it is a good thing  to 
> have, for example, if it were in the Effective C++ book, you can  argue 
> that way.

yeah, if it were in one of those books it could be added to the -weff-c++ 
option.  It doesn't seem sensible to add a different option for an alternative 
(set of?) coding rule(s).

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



More information about the Gcc mailing list