RoshanGerard / aparapi

Automatically exported from code.google.com/p/aparapi
Other
0 stars 0 forks source link

Declaration at end of scope error #59

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Although it is not a very big issue (seeing as to how it is useless), it is 
good to at least have it on documentation.

Kernel kernel = new Kernel(){
            @Override public void run(){
                {
                    int insideScope = 0;
                }
                int outsideScope = 0;
            }
        };

Whenever a variable is declared at the end of a scope and not used, it creates 
a NullPointerException 
"com.amd.aparapi.InstructionSet$LocalVariableConstIndexStore.isDeclaration"

Original issue reported on code.google.com by mjl...@gmail.com on 25 Jul 2012 at 3:48

GoogleCodeExporter commented 9 years ago
Thanks for submitting this.  I will create a junit for this to track it. Unless 
you would prefer to do so ;) 

Original comment by frost.g...@gmail.com on 25 Jul 2012 at 7:30

GoogleCodeExporter commented 9 years ago
Confirmed this still exists as of 4/21/2013

Original comment by lats...@gmail.com on 21 Apr 2013 at 11:23