public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor
       [not found] <bug-16370-1258@http.gcc.gnu.org/bugzilla/>
@ 2007-03-21 14:39 ` ian at airs dot com
  2007-05-17 16:22 ` bkoz at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: ian at airs dot com @ 2007-03-21 14:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ian at airs dot com  2007-03-21 14:39 -------
With current mainline, I get no warning for this:

struct Foo { int i; } __attribute__ ((deprecated));
void foo() { Foo f; }

but I do get a warning for this:

struct Foo { int i; } __attribute__ ((deprecated));
void foo() { struct Foo f; }

The only different is the "struct" keyword.  That is bizarre.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16370


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor
       [not found] <bug-16370-1258@http.gcc.gnu.org/bugzilla/>
  2007-03-21 14:39 ` [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor ian at airs dot com
@ 2007-05-17 16:22 ` bkoz at gcc dot gnu dot org
  2007-09-23 15:27 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2007-05-17 16:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from bkoz at gcc dot gnu dot org  2007-05-17 17:22 -------

Also an issue with class templates.

See this thread:
http://gcc.gnu.org/ml/libstdc++/2007-05/msg00113.html

I'm changing this to normal severity, since we absolutely need a solution
pronto on this, as it is essential for C++0x work.


-- 

bkoz at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |normal


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16370


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor
       [not found] <bug-16370-1258@http.gcc.gnu.org/bugzilla/>
  2007-03-21 14:39 ` [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor ian at airs dot com
  2007-05-17 16:22 ` bkoz at gcc dot gnu dot org
@ 2007-09-23 15:27 ` jason at gcc dot gnu dot org
  2007-09-23 15:28 ` jason at gcc dot gnu dot org
  2007-09-23 15:28 ` jason at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2007-09-23 15:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jason at gcc dot gnu dot org  2007-09-23 15:27 -------
Subject: Bug 16370

Author: jason
Date: Sun Sep 23 15:27:10 2007
New Revision: 128691

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128691
Log:
        PR c++/16370
        * decl.c (grokdeclarator): Look through implicit TYPE_DECLs
        for deprecation warnings.

Added:
    trunk/gcc/testsuite/g++.dg/warn/deprecated-5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/g++.dg/warn/deprecated.C


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16370


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor
       [not found] <bug-16370-1258@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2007-09-23 15:27 ` jason at gcc dot gnu dot org
@ 2007-09-23 15:28 ` jason at gcc dot gnu dot org
  2007-09-23 15:28 ` jason at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2007-09-23 15:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jason at gcc dot gnu dot org  2007-09-23 15:28 -------
Fixed for 4.3.0.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16370


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor
       [not found] <bug-16370-1258@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2007-09-23 15:28 ` jason at gcc dot gnu dot org
@ 2007-09-23 15:28 ` jason at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2007-09-23 15:28 UTC (permalink / raw)
  To: gcc-bugs



-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-05-01 03:41:47         |2007-09-23 15:28:24
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16370


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor
  2004-07-05 13:44 [Bug c++/16370] New: " tim dot vanholder at anubex dot com
                   ` (2 preceding siblings ...)
  2005-05-01  3:41 ` pinskia at gcc dot gnu dot org
@ 2005-05-01  5:21 ` gdr at integrable-solutions dot net
  3 siblings, 0 replies; 10+ messages in thread
From: gdr at integrable-solutions dot net @ 2005-05-01  5:21 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 633 bytes --]


------- Additional Comments From gdr at integrable-solutions dot net  2005-05-01 05:21 -------
Subject: Re:  __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor

"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| ------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-01 03:41 -------
| We now get:
| t.cc:36: warning: ‘__comp_ctor ’ is deprecated (declared at t.cc:18)
| 
| note the extra space.

The extra space is part of the name, if you ask me.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16370


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor
  2005-05-01  3:41 ` pinskia at gcc dot gnu dot org
@ 2005-05-01  5:21   ` Gabriel Dos Reis
  0 siblings, 0 replies; 10+ messages in thread
From: Gabriel Dos Reis @ 2005-05-01  5:21 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs

"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| ------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-01 03:41 -------
| We now get:
| t.cc:36: warning: ‘__comp_ctor ’ is deprecated (declared at t.cc:18)
| 
| note the extra space.

The extra space is part of the name, if you ask me.

-- Gaby


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor
  2004-07-05 13:44 [Bug c++/16370] New: " tim dot vanholder at anubex dot com
  2004-08-02  1:14 ` [Bug c++/16370] " pinskia at gcc dot gnu dot org
  2004-11-01  0:28 ` pinskia at gcc dot gnu dot org
@ 2005-05-01  3:41 ` pinskia at gcc dot gnu dot org
  2005-05-01  5:21   ` Gabriel Dos Reis
  2005-05-01  5:21 ` gdr at integrable-solutions dot net
  3 siblings, 1 reply; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-01  3:41 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 506 bytes --]


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-01 03:41 -------
We now get:
t.cc:36: warning: ‘__comp_ctor ’ is deprecated (declared at t.cc:18)

note the extra space.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2004-11-01 00:28:00         |2005-05-01 03:41:47
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16370


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor
  2004-07-05 13:44 [Bug c++/16370] New: " tim dot vanholder at anubex dot com
  2004-08-02  1:14 ` [Bug c++/16370] " pinskia at gcc dot gnu dot org
@ 2004-11-01  0:28 ` pinskia at gcc dot gnu dot org
  2005-05-01  3:41 ` pinskia at gcc dot gnu dot org
  2005-05-01  5:21 ` gdr at integrable-solutions dot net
  3 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-01  0:28 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
   Last reconfirmed|2004-08-02 01:14:37         |2004-11-01 00:28:00
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16370


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor
  2004-07-05 13:44 [Bug c++/16370] New: " tim dot vanholder at anubex dot com
@ 2004-08-02  1:14 ` pinskia at gcc dot gnu dot org
  2004-11-01  0:28 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-02  1:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-02 01:14 -------
Confirmed.  Sounds like GCC is using the DECL_NAME instead of (I cannot remember the name right 
now).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-02 01:14:37
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16370


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-09-23 15:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-16370-1258@http.gcc.gnu.org/bugzilla/>
2007-03-21 14:39 ` [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor ian at airs dot com
2007-05-17 16:22 ` bkoz at gcc dot gnu dot org
2007-09-23 15:27 ` jason at gcc dot gnu dot org
2007-09-23 15:28 ` jason at gcc dot gnu dot org
2007-09-23 15:28 ` jason at gcc dot gnu dot org
2004-07-05 13:44 [Bug c++/16370] New: " tim dot vanholder at anubex dot com
2004-08-02  1:14 ` [Bug c++/16370] " pinskia at gcc dot gnu dot org
2004-11-01  0:28 ` pinskia at gcc dot gnu dot org
2005-05-01  3:41 ` pinskia at gcc dot gnu dot org
2005-05-01  5:21   ` Gabriel Dos Reis
2005-05-01  5:21 ` gdr at integrable-solutions dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).