I found that the header file where CompareType was actually defined did not match the header file described in gist.sgml. CompareType is currently defined at "src/include/access/cmptype.h" instead of "src/include/nodes/primnodes.h". This change was made in the commit below, but it seems that documentation update was missed.