On 08/08/2014 06:03 AM, Paolo Carlini wrote:
Note - in fact I
noticed this some days ago - that probably the idea of passing complain
to check_narrowing is good anyway, otherwise we have a function emitting
unconditional warnings called by functions which have a tsubst_flags_t.
Makes sense.
But it occurs to me that rather than handle the enum situation
specially, maybe we want to give a narrowing error for a constant value
even with -Wno-narrowing, since in that case we know that there's a
problem; the problematic cases that I added -Wno-narrowing for are
non-constant expressions.
Jason