more 6g reorg; checkpoint.
typecheck.c is now responsible for all type checking
except for assignment and function argument "..."
R=ken
OCL=32661
CL=32667
diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y
index 97800d3..4e280c1 100644
--- a/src/cmd/gc/go.y
+++ b/src/cmd/gc/go.y
@@ -123,7 +123,8 @@
{
if(debug['f'])
frame(1);
- fninit($4);
+ if(nerrors == 0)
+ fninit($4);
if(nsyntaxerrors == 0)
testdclstack();
}
@@ -882,7 +883,7 @@
| convtype lbrace braced_keyval_list '}'
{
// composite expression
- $$ = nod(OCOMPOS, N, $1);
+ $$ = nod(OCOMPLIT, N, $1);
$$->list = $3;
// If the opening brace was an LBODY,
@@ -894,7 +895,7 @@
| pexpr '{' braced_keyval_list '}'
{
// composite expression
- $$ = nod(OCOMPOS, N, $1);
+ $$ = nod(OCOMPLIT, N, $1);
$$->list = $3;
}
| fnliteral