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]

Re: Turning warning "returning reference to temporary" into error?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]