Menu

#100 OnBC:bad case 8 (if statement with non ballanced parantesis)

Bug
open
OnBoard C (71)
8
2008-04-28
2003-11-22
John Wilund
No

Unballanced parantesis causes this BUG. (error).

To evoke this try this code:

static Boolean badCasegenerator(void){
Int8 val;
if(val==0)) // Oops! This will generate a bad case 8
return 0;
else
return 1;
}

How ever: If I change the line to:
if(val)) //This will NOT generate a bad case 8

But ofcause another error message!!

In discussion with Boz, he suggested this could be a
parser error....

/John

Discussion

  • John Wilund

    John Wilund - 2003-11-22
    • priority: 5 --> 8
    • milestone: --> 349195
     
  • John Wilund

    John Wilund - 2003-11-22
    • summary: OBC: bad case 8 (if statement with non ballanced parantesis --> OBC: bad case 8 (if statement with non ballanced parantesis)
    • milestone: 349195 --> 349193
     
  • Wade Guthrie

    Wade Guthrie - 2003-11-26
    • status: open --> closed-duplicate
     
  • Wade Guthrie

    Wade Guthrie - 2003-11-26

    Logged In: YES
    user_id=567012

    This is a duplicate of bug 693084

     
  • Wade Guthrie

    Wade Guthrie - 2003-11-29

    Logged In: YES
    user_id=567012

    I've (well, John and Boz showed me that I should)
    reconsidered the duplicateness of this bug.

     
  • Wade Guthrie

    Wade Guthrie - 2003-11-29
    • status: closed-duplicate --> open
     
  • Wade Guthrie

    Wade Guthrie - 2003-12-01

    Here's code that reproduces the bug. It's from John Wilund.

     
  • John Wilund

    John Wilund - 2003-12-03
    • summary: OBC: bad case 8 (if statement with non ballanced parantesis) --> OnBC:bad case 8 (if statement with non ballanced parantesis)
     
  • Wade Guthrie

    Wade Guthrie - 2004-01-09
    • milestone: 349193 -->
     
  • Wade Guthrie

    Wade Guthrie - 2004-01-09
    • milestone: --> Bug
    • labels: --> OnBoard C
     
  • John Wilund

    John Wilund - 2008-04-11

    Logged In: YES
    user_id=574706
    Originator: YES

    Steve, This one has a .c file attached!

     
  • John Wilund

    John Wilund - 2008-04-28

    Logged In: YES
    user_id=574706
    Originator: YES

    Steve, there is a source code attached aswell..

     
  • John Wilund

    John Wilund - 2008-04-28
    • assigned_to: nobody --> boz_x
     

Log in to post a comment.