This only occurs with VLAs. Note that if you replace mof[argc] with mof[5] it compiles just fine. Resummarizing.