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: Idea to refine -Wtype-limits


On 25 Nov 2007 21:26:21 -0600, Gabriel Dos Reis <gdr@cs.tamu.edu> wrote:
>
> I have no implementation strategy at the moment.  But I do have a
> request:  Please, whatever you do, please, don't make it noisy with
> template codes and `reasonable' codes. (We have had PRs for that
> behaviour in template codes).
>

Well, the goal is to define a syntax to allow avoiding the warnings.
See my proposal previously in this thread about why I think an
explicit cast would be better than using 0U in template code. Yet,
with template code perhaps we could just avoid warning completely but
I don't see how to check at the point of warning that the type comes
from the instantiation of a template. If there is some way to check
that that I have missed while looking into this, please let me know.

Cheers,

Manuel.


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