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: Surprising behavior of __attribute__((deprecated)) in ctor


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


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