[Bug c++/15774] Conflicting function decls not diagnosed
giovannibajo at libero dot it
gcc-bugzilla@gcc.gnu.org
Mon Jun 28 07:50:00 GMT 2004
------- Additional Comments From giovannibajo at libero dot it 2004-06-28 07:40 -------
I think the idea is that if you *ADD* an attribute in a later redeclaration,
you should get an error (like in your testcase), but if you omit it in the
redeclaration it is ok (the attribute is implicit in that case).
// OK
void foo(void) stdcall;
void foo(void) {}
// OK
void bar(void) stdcall;
void bar(void) stdcall {}
// ERROR
void foobar(void);
void foobar(void) stdcall {}
Jason, would you kindly comment on this? We need to know which way to proceed
with this patch.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15774
More information about the Gcc-bugs
mailing list