This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Turning warning "returning reference to temporary" into error?
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: 11 May 2003 19:56:24 +0200
- Subject: Re: Turning warning "returning reference to temporary" into error?
- Organization: Integrable Solutions
- References: <Pine.LNX.4.44.0305111936530.560-100000@goofy>
Richard Guenther <rguenth@tat.physik.uni-tuebingen.de> writes:
[...]
| Wouldnt it be a good idea to at least turn the
| maybe_warn_about_returning_address_of_local warnings into an error with
| -pedantic? Or always?
This is not always practical since the actual meaning (i.e. error or
not) depends on the code path during runtime.
-- Gaby