This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SCOPE STACK OVERFLOW

HI, i am writing a program in which there are many do-while loops one inside the other...
when i try compile this program... it gives me a error stating.."'{' scope stack overflow.."
it point to braces i have used in DO-WHILE an IF statement...
plss help me to solve this problem...
THANKS...

Parents
  • A compiler is a finite thing so, clearly, you cannot just keep on nesting blocks indefinitely - there has not be some limit.

    The 'C' standard specifies minimum limits - look up "Translation Limits" in the standard.

    A compiler may, of course, exceed those minimum limits - for details, you must study the Manual for the particular compiler.

    eg, http://www.keil.com/support/man/docs/c51/c51_xd.htm - titled, "Compiler Limits"

    And, no - it has nothing to do with the amount of RAM in your PC!

Reply
  • A compiler is a finite thing so, clearly, you cannot just keep on nesting blocks indefinitely - there has not be some limit.

    The 'C' standard specifies minimum limits - look up "Translation Limits" in the standard.

    A compiler may, of course, exceed those minimum limits - for details, you must study the Manual for the particular compiler.

    eg, http://www.keil.com/support/man/docs/c51/c51_xd.htm - titled, "Compiler Limits"

    And, no - it has nothing to do with the amount of RAM in your PC!

Children