public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/5509: -Wunused-parameter and tree inlining
@ 2002-01-28  3:26 jakub
  0 siblings, 0 replies; 2+ messages in thread
From: jakub @ 2002-01-28  3:26 UTC (permalink / raw)
  To: gcc-gnats; +Cc: peter.klotz


>Number:         5509
>Category:       c++
>Synopsis:       -Wunused-parameter and tree inlining
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 28 03:26:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     jakub@redhat.com
>Release:        3.1 20020125 (experimental)
>Organization:
>Environment:
i386-redhat-linux
>Description:
-Wunused-parameter is not signalled when using tree inlining
>How-To-Repeat:
struct A
{
  A (int i) {}
  int foo (int i) { return 0; }
};

struct B
{
  B (int i);
  int foo (int i) { return 0; }
};

B::B (int i)
{
}

inline void baz (int i)
{
}

int main(void)
{
  A x(1);
  B y(2);
  x.foo (3);
  y.foo (4);
  baz (5);
  return 0;
}

should issue the unused parameter warning 5 times, while
ATM it issues it 4 times (-O0) and once (-O1+).
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: c++/5509: -Wunused-parameter and tree inlining
@ 2002-09-15 12:13 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-09-15 12:13 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jakub, nobody, peter.klotz

Synopsis: -Wunused-parameter and tree inlining

State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Sun Sep 15 12:13:40 2002
State-Changed-Why:
    confirmed. sort of a regression

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5509


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

end of thread, other threads:[~2002-09-15 19:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-28  3:26 c++/5509: -Wunused-parameter and tree inlining jakub
2002-09-15 12:13 nathan

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