[c++] bug 2628 and new
Theodore Papadopoulo
Theodore.Papadopoulo@sophia.inria.fr
Thu Apr 26 09:58:00 GMT 2001
gdr@codesourcery.com said:
> | 3) we could issue a diagnostic when -fno-exceptions is enabled an
> | operator new is called (and any other throw expression?)
> A pedwarn?
I'd say that the solution should also work for the other situations
(at least dynamic_cast on reference can throw). This somewhat rules
out the two first solutions proposed by Nathan.
In addition to the pedwarn, maybe there should be specific versions
of the generated code (functions) that implement new or dynamic_cast.
The code would print a message and call abort(). This is
consistent with the behavior we have when calling pure methods.
Theo.
--------------------------------------------------------------------
Theodore Papadopoulo
Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
--------------------------------------------------------------------
--
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Exmh version 2.2 06/23/2000
iD8DBQE66FOpIzTj8qrxOU4RAnDBAJ9YkFcSxV9Ma/FoXALpUaLyUQbclACgzUyA
zhfIMOjiOHl2gmPlWSiSKHk=
=ZWJA
-----END PGP SIGNATURE-----
More information about the Gcc
mailing list