shithub: scc

Download patch

ref: 52c91656da390b9135444e74d7bc2bd94e9da285
parent: 74442d46adedbdd6109d94d677ccdbf9ffa9fc20
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Aug 29 07:34:09 EDT 2017

[cc1] Change comment for void [] arrays

In the moment that this error is printed we don't know if
we are declaring a typename, a variable, a field or whatever.
This message is more general and can cause less confusion to
the user.

--- a/cc1/types.c
+++ b/cc1/types.c
@@ -299,7 +299,7 @@
 	switch (op) {
 	case ARY:
 		if (tp == voidtype) {
-			errorp("declaration of symbol as array of voids");
+			errorp("declaration of array of voids type");
 			tp = inttype;
 		}
 		type.letter = L_ARRAY;