Dechenjm / crack-language

Automatically exported from code.google.com/p/crack-language
Other
0 stars 0 forks source link

Referencing a local variable from an inner function breaks code generation #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run this:
  void outer() { int a; int inner() { return a; } }

What is the expected output?

  Should get a parser error: referencing outer function scopes is not allowed yet. 

What do you see instead?

  LLVM errors during optimization.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by mind...@gmail.com on 1 Jul 2010 at 5:29

GoogleCodeExporter commented 9 years ago

Original comment by mind...@gmail.com on 1 Jul 2010 at 8:11

GoogleCodeExporter commented 9 years ago

Original comment by mind...@gmail.com on 4 Aug 2010 at 10:56

GoogleCodeExporter commented 9 years ago

Original comment by mind...@gmail.com on 10 Aug 2010 at 12:14