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: Mike Stump <mrs at apple dot com>
- To: Mathieu Malaterre <mmalater at nycap dot rr dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 24 Jul 2005 12:22:27 -0700
- Subject: Re: Surprising behavior of __attribute__((deprecated)) in ctor
On Saturday, July 23, 2005, at 05:42 PM, Mathieu Malaterre wrote:
I have quite a surpising behavior with gcc when compiling the
following code (*). Here is the output:
Using:
$ g++ --version
g++ (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671)
g++-4.0 --version
powerpc-apple-darwin8-g++-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer,
Inc. build 4061)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
mrs $ g++-4.0 t7.cc
mrs $
Maybe you want to run 4.0? Maybe you want a newer release?
mrs $ g++-3.3 t7.cc
t7.cc: In constructor `A::A(int)':
t7.cc:11: warning: `A' is deprecated (declared at t7.cc:9)
t7.cc: In constructor `A::A(int)':
t7.cc:11: warning: `A' is deprecated (declared at t7.cc:9)
Yup, right testcase...