E2566 Invalid type '%s' in call to %s (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

This occurs when using an invalid type in an externally defined object.

struct A_ {
        static typename T::type z;
        };
   int main() {
     int k = sizeof(A_<int>::z);         // error: int::z is not a valid type
      }