I'm not sure whether the following is a bug in the C standard, a bug in GCC, or some weird behavior I just misunderstand, but the following complains about an implicit declaration of foo:
static inline void foo(void);
inline void bar(void) {
foo();
}
Any thoughts? Thanks.
Note: If you want the correct answer, search for mine rather than the other ones, regardless of votes.