[Bug libstdc++/25191] exception_defines.h #defines try/catch
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Nov 21 22:21:00 GMT 2008
------- Comment #69 from pinskia at gcc dot gnu dot org 2008-11-21 22:19 -------
I think this patch will not handle:
int main(void)
{
try {
}catch (int &a)
{
a = 1;
}
}
-- CUT ---
In fact exception_defines.h's defines does not handle them correctly anyways.
I am working on a patch which adds -fignore-exceptions which has to be used
with -fno-exceptions which handles this correctly. Plus we don't get erroneous
errors with -fno-exceptions now too. Should -fignore-exceptions be default for
C++ when -fno-exceptions is used?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25191
More information about the Gcc-bugs
mailing list