ref: b953ac1cdd26aad71a91905475ce2ff1a0a9cbc8
parent: 92778381c37454ad7857d0e7ee6608920544d7d2
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Jun 14 15:30:11 EDT 2022
cc1: Improve error message We have more detailed information and it can be printed to the user and give him more information about the actual problem.
--- a/src/cmd/cc/cc1/decl.c
+++ b/src/cmd/cc/cc1/decl.c
@@ -899,7 +899,7 @@
tp = inttype;
}
if (tp->op == FTN) {
- errorp("invalid type '%s' in struct/union", name);
+ errorp("field '%s' declared as a function", name);
tp = inttype;
}
if (dcl->sclass)