BT San 106b(43) :דואג ואחיתפל גמארא הוו גמירי מסבר לא הוו סברי שמעתא
: Doeg and Ahitophel learned the tradition, (but) they did not actually make logical deductions of legal matters
See the entire entry for gmār, gmārā v.n. completion; traditional study