Parser fails with assertion when the variable is named the same as type
|
|
| Bugzilla Link |
1123 |
| Created on |
Jul 10, 2014 17:29 |
| Resolution |
FIXED |
| Resolved on |
Jul 10, 2014 21:49 |
| Version |
svn |
| OS |
Linux |
| Architecture |
PC |
Extended Description
The program that fails:
1 typedef int[3] rgb;
2
3 rgb sel (int[.] iv, rgb[.,.])
4 {
5 }
./t.sac 3:29 error:
=> token ) cannot start a function argument name
Internal compiler error
Assertion "id" failed at scanparse/parser.c:4709 -- id cannot be NULL here
Please file a bug at: http://bugs.sac-home.org
The problem is that the argument name is missing.
The parser should not hit the assertion.