[Bug c++/15774] Conflicting function decls not diagnosed
jason at redhat dot com
gcc-bugzilla@gcc.gnu.org
Tue Jun 29 03:31:00 GMT 2004
------- Additional Comments From jason at redhat dot com 2004-06-29 03:03 -------
Subject: Re: Conflicting function decls not diagnosed
On 28 Jun 2004 07:40:43 -0000, "giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org> wrote:
> 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).
> Jason, would you kindly comment on this? We need to know which way to proceed
> with this patch.
That makes sense to me as a general rule.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15774
More information about the Gcc-bugs
mailing list