[Prev][Next][Index]
fixed a bug in a class field lookup function in the parser
- From: Beata Winnicka <bfatyga@slab.extreme.indiana.edu>
- Date: Mon, 8 May 95 18:19:39 -0500
- To: sage-bugs@rainier.extreme.indiana.edu
- Subject: fixed a bug in a class field lookup function in the parser
- Sender: owner-sage-bugs@extreme.indiana.edu
This bug was originally reported by Juan. The following code
would not parse:
class B;
class C;
class B{
struct D{};
int * i;
void foo(int * );
};
void B::foo(int * u){
if(i==0){}
}
The error message was:
rainier_24:pc++ -unparse l.c
Error on line 10 of l.c: Undefined symbol 'i'
I have patched up the parser so now it seems to be able to handle
cases like the example above. As always, if you notice any unusual
behavior, let me know. --Beata