JulianKemmerer / PipelineC

A C-like hardware description language (HDL) adding high level synthesis(HLS)-like automatic pipelining as a language construct/compiler feature.
https://github.com/JulianKemmerer/PipelineC/wiki
GNU General Public License v3.0
606 stars 50 forks source link

Static local variables cannot be declared inside IFs #146

Open JulianKemmerer opened 2 years ago

JulianKemmerer commented 2 years ago

Ex.

static uint32_t my_var; // Works
if(cond){
   // static uint32_t my_var; // Does not work
   my_var += 1;
}