mirror of
https://github.com/golang/go.git
synced 2025-11-08 20:51:02 +00:00
don't crash on:
package main
var x int
type x struct { a int }
R=ken
OCL=22903
CL=22903
This commit is contained in:
parent
8a7cbadbbe
commit
c1e7e270f1
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ dodcltype(Type *n)
|
||||||
// if n has been forward declared,
|
// if n has been forward declared,
|
||||||
// use the Type* created then
|
// use the Type* created then
|
||||||
s = n->sym;
|
s = n->sym;
|
||||||
if(s->block == block) {
|
if(s->block == block && s->otype != T) {
|
||||||
switch(s->otype->etype) {
|
switch(s->otype->etype) {
|
||||||
case TFORWSTRUCT:
|
case TFORWSTRUCT:
|
||||||
case TFORWINTER:
|
case TFORWINTER:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue