This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
From: Thomas Costa <tcosta@ovro.caltech.edu> Date: 10 October 2005 3:34:46 PM PDT To: gcc-help@gcc.gnu.org Subject: Warning on C++ catch by value on non primitive types
Is there any way to get gcc/g++ to warn on C++ code that does a catch by value of non primitive types (i.e. types that aren't int, float, bool, etc.)?
I would take a warning on any catch by value but the ideal would be a warning that doesn't fire for "catch (const int x)"
This continually creeps into our our C++ code base.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |