Message The type "<type>" is being declared as part of <context>. C++ does not permit a new type to be declared in this context. <Fix>. Description C++ does not allow types to be declared in certain contexts that are valid in C. One example is the declaration of a type within a function prototype. User Action Declare the type before its use.