diff options
author | Russ Cox <rsc@golang.org> | 2010-02-18 18:31:13 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-02-18 18:31:13 -0800 |
commit | 43651f500b2a2d29672328b360e0b5d8c2b4d4f0 (patch) | |
tree | 1856a37f83fd545707aa8d7a9342369f2425b7f1 /src/cmd/gc/typecheck.c | |
parent | 801d06a1a2e3e5030c3b95f9c83ec3c7e1731d61 (diff) | |
download | golang-43651f500b2a2d29672328b360e0b5d8c2b4d4f0.tar.gz |
gc: fix this morning's bug fix
R=ken2
CC=golang-dev
http://codereview.appspot.com/216043
Diffstat (limited to 'src/cmd/gc/typecheck.c')
-rw-r--r-- | src/cmd/gc/typecheck.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/gc/typecheck.c b/src/cmd/gc/typecheck.c index 9804220d1..2908459fc 100644 --- a/src/cmd/gc/typecheck.c +++ b/src/cmd/gc/typecheck.c @@ -1239,6 +1239,8 @@ lookdot(Node *n, Type *t, int dostrcmp) if(f2 != T) yyerror("ambiguous DOT reference %S as both field and method", n->right->sym); + if(f1->width == BADWIDTH) + fatal("lookdot badwidth %T %p", f1, f1); n->xoffset = f1->width; n->type = f1->type; if(t->etype == TINTER) { |