unhelpful error message for missing typename

Consider the following code (a reduction of some actual code of mine):

Please file in Bugzilla, so we don't lose track of this issue.

-Eli