Toad does not support anonymous blocks of PL\SQL.
In 6.1 there were Toad syntax parser issues that did not flag those individual statements.
In v6.5 the syntax checker was updated and now (correctly) flags those statements if they are not within the syntax of a Create Procedure statement (or the like).