Re: Surprising behavior of __attribute__((deprecated)) in ctor

2005-07-24 Thread Mathieu Malaterre
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... To support Panther I defined a MACRO: # if defined(__GNUC__)

Re: Surprising behavior of __attribute__((deprecated)) in ctor

2005-07-24 Thread Mike Stump
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++-

Re: Surprising behavior of __attribute__((deprecated)) in ctor

2005-07-23 Thread Ian Lance Taylor
Mathieu Malaterre <[EMAIL PROTECTED]> 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: warn