Commit c1e7e270 authored by Russ Cox's avatar Russ Cox

don't crash on:

package main
var x int
type x struct { a int }

R=ken
OCL=22903
CL=22903
parent 8a7cbadb
......@@ -63,7 +63,7 @@ dodcltype(Type *n)
// if n has been forward declared,
// use the Type* created then
s = n->sym;
if(s->block == block) {
if(s->block == block && s->otype != T) {
switch(s->otype->etype) {
case TFORWSTRUCT:
case TFORWINTER:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment