[Bug c/22052] [4.0/4.1 Regression] redefinition of inline function succeeds

echristo at redhat dot com gcc-bugzilla@gcc.gnu.org
Tue Jun 14 01:11:00 GMT 2005


------- Additional Comments From echristo at redhat dot com  2005-06-14 01:11 -------
Joseph,

So, what you're saying is that we should accept this:

extern inline int foo (void) { return 0; }
inline int foo (void) { return 1; }

unless we're in strict c99 mode.

And reject this:

static inline int foo (void) { return 0; }
static inline int foo (void) { return 1; }

in all cases?

I'm trying to get a set of tests up for everything we should and shouldn't accept :)

Current diff is attached. Mostly untested except for the above testcases.

-eric

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22052



More information about the Gcc-bugs mailing list