};
#define C ((Case*)nil)
+Type*
+notideal(Type *t)
+{
+ if(t != T && t->etype == TIDEAL)
+ return T;
+ return t;
+}
+
void
dumpcase(Case *c0)
{
Type*
sw1(Node *c, Type *place, int arg)
{
- if(place == T)
- return c->type;
+ if(place != T)
+ return notideal(c->type);
return place;
}
* walk the cases as appropriate for switch type
*/
walkcases(sw, sw0, arg);
- t = sw->ntest->type;
+ t = notideal(sw->ntest->type);
if(t == T)
t = walkcases(sw, sw1, arg);
if(t == T)
/*
-bug155.go:20: syntax error near default
-bug155.go:20: first switch statement must be a case
+bug157.go:20: syntax error near default
+bug157.go:20: first switch statement must be a case
*/
/*
-bug156.go:14: fatal error: dowidth: unknown type: E-33
+bug158.go:14: fatal error: dowidth: unknown type: E-33
*/
bugs/bug157.go:20: first switch statement must be a case
BUG: should compile
-=========== bugs/bug158.go
-bugs/bug158.go:14: fatal error: dowidth: unknown type: E-33
-BUG: should compile
-
=========== fixedbugs/bug016.go
fixedbugs/bug016.go:7: constant -3 overflows uint