This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Surprising behavior of __attribute__((deprecated)) in ctor
- From: Ian Lance Taylor <ian at airs dot com>
- To: Mathieu Malaterre <mmalater at nycap dot rr dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 23 Jul 2005 20:49:37 -0700
- Subject: Re: Surprising behavior of __attribute__((deprecated)) in ctor
- References: <42E2E3D9.6090009@nycap.rr.com>
Mathieu Malaterre <mmalater@nycap.rr.com> writes:
> I have quite a surpising behavior with gcc when compiling the
> following code (*). Here is the output:
>
> $ g++ deprecated.cxx /tmp
> deprecated.cxx: In constructor `A::A(int)':
> deprecated.cxx:11: warning: `A' is deprecated (declared at deprecated.cxx:9)
> deprecated.cxx: In constructor `A::A(int)':
> deprecated.cxx:11: warning: `A' is deprecated (declared at deprecated.cxx:9)
>
> Using:
> $ g++ --version
> g++ (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671)
>
> I cannot reproduce that with gcc 3.3, 3.4, 4.0 on my linux box (debian
> testing package).
If you have code which fails with the Apple branch of gcc, but not
with the FSF mainline sources, you need to talk to the Apple folks,
not to us. Some Apple developers do read this mailing list, so you
may get a reply, but in general this mailing list discusses the FSF
sources. Sorry.
Ian