This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: c/7425: deprecated attribute doesn't merge with multiple declarations
- From: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc at gcc dot gnu dot org, james at mail dot and dot org
- Date: 03 May 2003 14:31:47 +0200
- Subject: Re: c/7425: deprecated attribute doesn't merge with multiple declarations
This boils down to
void func(void);
void func(void) __attribute__((deprecated));
void f(void) {
func();
}
I'm not sure what is supposed to happen with multiple declarations
with conflicting attributes, I cannot find anything in the manual
about this. Do we really want to "merge" them? What should happen if
they conflict? Other options seem to be "choose any" and "choose the
later". Current behaviour seems to be "choose any".
--
Falk