Surprising behavior of __attribute__((deprecated)) in ctor
Ian Lance Taylor
ian@airs.com
Sun Jul 24 03:49:00 GMT 2005
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
More information about the Gcc
mailing list