public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17729] New: Duplicate __attribute__((deprecated)) warning
@ 2004-09-29 16:34 jsm28 at gcc dot gnu dot org
  2004-09-29 17:46 ` [Bug c++/17729] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2004-09-29 16:34 UTC (permalink / raw)
  To: gcc-bugs

void func(void) __attribute__((deprecated));

void f(void) {
  func();
}

gives a warning twice when compiled as C++:

t.C: In function `void f()':
t.C:4: warning: 'func' is deprecated (declared at t.C:1)
t.C:4: warning: 'func' is deprecated (declared at t.C:1)

-- 
           Summary: Duplicate __attribute__((deprecated)) warning
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsm28 at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/17729] [3.4/4.0 Regression] Duplicate __attribute__((deprecated)) warning
  2004-09-29 16:34 [Bug c++/17729] New: Duplicate __attribute__((deprecated)) warning jsm28 at gcc dot gnu dot org
@ 2004-09-29 17:46 ` pinskia at gcc dot gnu dot org
  2004-10-28 16:54 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-29 17:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-29 17:46 -------
I thought I saw another bug like this but I cannot find it at all.
Well this is a regression too from 3.3.3.

Broke between 2002-12-14 and 2002-12-29 which means this is most likely by the new parser.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-29 17:46:50
               date|                            |
            Summary|Duplicate                   |[3.4/4.0 Regression]
                   |__attribute__((deprecated)) |Duplicate
                   |warning                     |__attribute__((deprecated))
                   |                            |warning
   Target Milestone|---                         |3.4.3


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


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

* [Bug c++/17729] [3.4/4.0 Regression] Duplicate __attribute__((deprecated)) warning
  2004-09-29 16:34 [Bug c++/17729] New: Duplicate __attribute__((deprecated)) warning jsm28 at gcc dot gnu dot org
  2004-09-29 17:46 ` [Bug c++/17729] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-28 16:54 ` pinskia at gcc dot gnu dot org
  2004-11-01  0:46 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-28 16:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-28 16:54 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg02515.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
           Keywords|                            |patch


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


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

* [Bug c++/17729] [3.4/4.0 Regression] Duplicate __attribute__((deprecated)) warning
  2004-09-29 16:34 [Bug c++/17729] New: Duplicate __attribute__((deprecated)) warning jsm28 at gcc dot gnu dot org
  2004-09-29 17:46 ` [Bug c++/17729] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
  2004-10-28 16:54 ` pinskia at gcc dot gnu dot org
@ 2004-11-01  0:46 ` mmitchel at gcc dot gnu dot org
  2004-11-25  4:48 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-01  0:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-11-01 00:45 -------
Postponed until GCC 3.4.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.3                       |3.4.4


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


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

* [Bug c++/17729] [3.4/4.0 Regression] Duplicate __attribute__((deprecated)) warning
  2004-09-29 16:34 [Bug c++/17729] New: Duplicate __attribute__((deprecated)) warning jsm28 at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-11-01  0:46 ` mmitchel at gcc dot gnu dot org
@ 2004-11-25  4:48 ` pinskia at gcc dot gnu dot org
  2004-12-21 21:06 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-25  4:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-25 04:48 -------
Actually the patch did not fully, it did cause some regressions after all.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|pinskia at gcc dot gnu dot  |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW
           Keywords|patch                       |


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


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

* [Bug c++/17729] [3.4/4.0 Regression] Duplicate __attribute__((deprecated)) warning
  2004-09-29 16:34 [Bug c++/17729] New: Duplicate __attribute__((deprecated)) warning jsm28 at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-11-25  4:48 ` pinskia at gcc dot gnu dot org
@ 2004-12-21 21:06 ` mmitchel at gcc dot gnu dot org
  2005-03-05 19:49 ` [Bug c++/17729] [3.4/4.0/4.1 " pinskia at gcc dot gnu dot org
  2005-08-22  1:47 ` mmitchel at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-12-21 21:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-12-21 21:06 -------
This is not very easy to fix.

The first warning comes from the parser, during name-lookup, when it realizes
that the name resolves to a deprecated function.  The second warning comes after
overload resolution, when we select a function to call.  If func was really
overloaded, then the parser would not warn, so we need the warning after
overload resolution.  However, if the function is never called, we want the
warning from the parser.  Because the FUNCTION_DECL is doubling as a node in the
expression tree, we can't mark it as "warning issued" without losing any
subsequent warnings about other uses.  Joseph and I both agree that we really
want some kind of separate parser-expression structure to use for exactly this
kind of thing, but we haven't got it yet.

This is not a high-priority item, so I'm downgrading it to P3.  I'm also
removing the target milestone, despite being a regression, as this is a minor
annoyance, and would never block a release. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3
   Target Milestone|3.4.4                       |---


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


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

* [Bug c++/17729] [3.4/4.0/4.1 Regression] Duplicate __attribute__((deprecated)) warning
  2004-09-29 16:34 [Bug c++/17729] New: Duplicate __attribute__((deprecated)) warning jsm28 at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-12-21 21:06 ` mmitchel at gcc dot gnu dot org
@ 2005-03-05 19:49 ` pinskia at gcc dot gnu dot org
  2005-08-22  1:47 ` mmitchel at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-05 19:49 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


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


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

* [Bug c++/17729] [3.4/4.0/4.1 Regression] Duplicate __attribute__((deprecated)) warning
  2004-09-29 16:34 [Bug c++/17729] New: Duplicate __attribute__((deprecated)) warning jsm28 at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-03-05 19:49 ` [Bug c++/17729] [3.4/4.0/4.1 " pinskia at gcc dot gnu dot org
@ 2005-08-22  1:47 ` mmitchel at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-08-22  1:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-08-22 01:44 -------
Removing target milestone, per previous comment.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.0                       |---


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


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

end of thread, other threads:[~2005-08-22  1:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-29 16:34 [Bug c++/17729] New: Duplicate __attribute__((deprecated)) warning jsm28 at gcc dot gnu dot org
2004-09-29 17:46 ` [Bug c++/17729] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-28 16:54 ` pinskia at gcc dot gnu dot org
2004-11-01  0:46 ` mmitchel at gcc dot gnu dot org
2004-11-25  4:48 ` pinskia at gcc dot gnu dot org
2004-12-21 21:06 ` mmitchel at gcc dot gnu dot org
2005-03-05 19:49 ` [Bug c++/17729] [3.4/4.0/4.1 " pinskia at gcc dot gnu dot org
2005-08-22  1:47 ` mmitchel at gcc dot gnu dot org

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).