confusing error message
| Bugzilla Link | 186 |
| Created on | Jan 11, 2006 22:46 |
| Resolution | WONTFIX |
| Resolved on | Nov 19, 2009 00:13 |
| Version | 1.00beta |
| OS | Linux |
| Architecture | PC |
Extended Description
This message comes from sac2c now and then, when my coding fingers haven't been
sharpened recently:
line 196
ERROR: argument #2 of "_modarray_" should be legal index into argument #1;
ERROR: types found: int[1]{0} and bool[0]
The problem is that the argument numbers are #2, #1, so it is not at
all clear (particularly when the line number is completely wrong) whether
the types are in order #2 #1 or #1 #2. Perhaps something along these
lines would be less confusing:
ERROR: Argument #2 ( int[1]{0} ) of "_modarray_" should be legal
index into argument #2 ( bool[0] ).