This is the mail archive of the gcc@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]

Re: c/7464: weak symbols alias definitions are broken in 3.1.1 (weak alias regression from 2.95)


On Fri, Oct 25, 2002 at 09:08:25AM -0500, Wolfgang Bangerth wrote:
> This is one more regression from 2.95 with respect to weak and alias 
> attributes:
> --------------------------------------------------
> extern int i __attribute__ ((alias ("__i")));
> extern int i __attribute__ ((weak, alias ("__i")));
> --------------------------------------------------

This test case is broken.  Despite the use of "extern",
the use of "alias" means that this is a definition.
So having two of them violates the ODR, and is indeed an error.


r~


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