[tree-ssa] diagnosing switch errors

Jason Merrill jason@redhat.com
Thu Oct 30 18:23:00 GMT 2003

On Thu, 30 Oct 2003 10:05:14 -0800, Richard Henderson <rth@twiddle.net> wrote:

> So I'm looking at where I should move the bits from stmt.c that
> are intended to handle -Wswitch-default, -Wswitch-enum and the
> like.  It'd be nice to do this somewhere that could be reused by
> all front ends.

Conceptually, I agree that these diagnostics should happen in the front
end.  But it seems infeasible to share that functionality between the
various front ends, so I think it needs to happen later.

The gimplifier is certainly no less appropriate a place for diagnostics
than the expander.  I think it probably makes sense to give these warnings
while lowering the switches.


More information about the Java mailing list