[Cpp-Programming] Class out-of-scope problem?
Hi! I've been creating a cross-platform C compiler using ANSI/ISO C++ and am running into a problem. I have a function that handles variable declarations. This function declares a label within the auto namespace (Term correction?) as:
Label* l=new Label; //Tmp. label
If the routine reaches a '(' in the input to indicate a function, it calls another function. Before the function call, the name of the function is retrieved correctly. However, within the called function, the function name returns garbage. What can cause this? I'm thinking that maybe the class loses scope during the call. I'm sorry that I'm not revealing more code; there's alot of code, and it's very vcomplex. I'd appreciate any advice.
-- You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cpp-programming/-/2M3Zxb4ibrUJ.
To post to this group, send email to cpp-programming@googlegroups.com.
To unsubscribe from this group, send email to cpp-programming+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cpp-programming?hl=en.
0 Comments:
Post a Comment
<< Home