This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15774] Conflicting function decls not diagnosed
- From: "jason at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2004 03:03:28 -0000
- Subject: [Bug c++/15774] Conflicting function decls not diagnosed
- References: <20040602105408.15774.dannysmith@users.sourceforge.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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