'typedef' :遺漏標記名稱
備註
編譯程式找到不完整的類型定義。
Example
下列範例會產生 C2332:
// C2332.cpp
// compile with: /c
struct S {
int i;
};
typedef struct * pS; // C2332
typedef struct S* pS; // OK
int get_S_i(pS p) {
return p->i;
}
'typedef' :遺漏標記名稱
編譯程式找到不完整的類型定義。
下列範例會產生 C2332:
// C2332.cpp
// compile with: /c
struct S {
int i;
};
typedef struct * pS; // C2332
typedef struct S* pS; // OK
int get_S_i(pS p) {
return p->i;
}