Menu ▾ ▴

#76 "const" is ignored

OnBoard_C
open
nobody
OnBoard C (33)
5
2005-04-11
2005-04-11
Anonymous
No

const is ignored:

int main(int ac, char **av)
{
const int i = 2;

i = 3;
return 0;
}

compiles.

In a similar vein, "volatile" declarations are not
allowed -- they should be ignored.

Discussion

  • Steve Little

    Steve Little - 2005-04-12

    Logged In: YES
    user_id=583634

    I second this. Shouldn't be hard to add volatile to the list of
    keywords and just ignore it.

    I think the part about const being ignored has been pointed
    out before, but it should certainly be fixed.

     
  • John Wilund

    John Wilund - 2005-04-19

    Logged In: YES
    user_id=574706

    I seccond this too,
    /John

     

Log in to post a comment.