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: 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


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