This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warnings in templates
Mark Mitchell <mark@codesourcery.com> writes:
[...]
| There are cases (like an "expression has no effect" warning in a
| template on the statement "3;") that we could issue with zero false
| positives in a template, and issuing those make sense to me. If we're
| not sure, we can defer the warning until instantiation time. I think
| things where we can't avoid false positives should be deferred until
| instantiation time.
Agreed.
-- Gaby