While debugging a program I noticed a structure declaration that contains an undefined type but GCC isn't flagging it with a warning or error. Why would that be the case?
Here is an example using an undefined structure type of 'notdef':
struct Notdef *mystruct;
Notdef isn't defined anywhere but the declaration isn't flagged.
On the other hand if I declare a simple pointer the same way it gets flagged as an error by GCC.
gets flagged as an error.
Can anyone explain why the structure declaration doesn't get flagged as an error?