|
From: <no...@so...> - 2001-12-18 19:01:09
|
Bugs item #494713, was opened at 2001-12-18 11:01 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=100599&aid=494713&group_id=599 Category: C-Front End Group: None Status: Open Resolution: None Priority: 5 Submitted By: Russel Winder (russel_winder) Assigned to: Nobody/Anonymous (nobody) Summary: array intialization problem Initial Comment: The code: unsigned int data[] = {'a', 'b', 'c'}; int main(void) { return 0 ; } generates the error: 606 elon:I8051 |> sdcc trial.c trial.c:1: parse error: token -> '[' ; column 18 607 elon:I8051 |> The code is fine according to GCC. Amend it to: unsigned int xdata data[] = {'a', 'b', 'c'}; int main(void) { return 0 ; } and there is an extra error: 607 elon:I8051 |> sdcc trial.c trial.c:1: error: two or more storage classes in declaration for '[' trial.c:1: parse error: token -> '[' ; column 24 608 elon:I8051 |> ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=100599&aid=494713&group_id=599 |