scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit b953ac1cdd26aad71a91905475ce2ff1a0a9cbc8
parent 92778381c37454ad7857d0e7ee6608920544d7d2
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 14 Jun 2022 19:30:11 +0200

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.

Diffstat:
Msrc/cmd/cc/cc1/decl.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/cc/cc1/decl.c b/src/cmd/cc/cc1/decl.c @@ -899,7 +899,7 @@ field(struct decl *dcl) 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)