From: SourceForge.net <no...@so...> - 2004-02-08 21:05:16
|
Bugs item #893037, was opened at 2004-02-08 13:05 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=893037&group_id=599 Category: C-Front End Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: switch-case with default wich has no break; at the end Initial Comment: Hi! Im useing SDCC Feb 3 2004 (MINGW) with the parameters: sdcc.exe main.c -mmcs51 --use-stdout --no-xinit-opt - I. -c It will fail to compile the code: void f(int a) { switch (a) { default: } } The message: main.c:7: parse error: token -> '}' ; column 9 But if you place a "break;" under the default it will work fine. Anyway its ok just .... Best regards and many thanks for this compiler guys! beba beba(no spam)koli.kando.hu ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=893037&group_id=599 |