Turning warning "returning reference to temporary" into error?
Gabriel Dos Reis
gdr@integrable-solutions.net
Sun May 11 17:57:00 GMT 2003
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
More information about the Gcc
mailing list