diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y
index 47482a00ec4bd8dc7e735439cf5c95232adfe05f..74475b4b373df4bbd4ca67dcc155c0c003cbba4a 100644
--- a/src/cmd/gc/go.y
+++ b/src/cmd/gc/go.y
@@ -1654,6 +1654,10 @@ exprsym3:
 	{
 		$$ = newname($1);
 	}
+|	LATYPE
+	{
+		$$ = newname($1);
+	}
 
 exprsym3_list_r:
 	exprsym3
diff --git a/test/bugs/bug145.go b/test/fixedbugs/bug145.go
similarity index 100%
rename from test/bugs/bug145.go
rename to test/fixedbugs/bug145.go
diff --git a/test/golden.out b/test/golden.out
index 752691295c92809dc56b8a4b48e88b38daac941d..b3cc4fb54334c0ad8c1a430cb1aeb92f3625ef6c 100644
--- a/test/golden.out
+++ b/test/golden.out
@@ -121,10 +121,6 @@ bugs/bug140.go:6: syntax error near L1
 bugs/bug140.go:7: syntax error near L2
 BUG should compile
 
-=========== bugs/bug145.go
-bugs/bug145.go:8: t is type, not var
-BUG should compile
-
 =========== fixedbugs/bug016.go
 fixedbugs/bug016.go:7: constant -3 overflows uint