This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15774] Conflicting function decls not diagnosed


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]