public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/2768: odd warning on spurious 'static'
@ 2001-08-11 12:10 gdr
  0 siblings, 0 replies; 3+ messages in thread
From: gdr @ 2001-08-11 12:10 UTC (permalink / raw)
  To: bh, gcc-bugs, gcc-prs, gdr, nobody

Synopsis: odd warning on spurious 'static'

Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: gdr
Responsible-Changed-When: Sat Aug 11 12:10:20 2001
Responsible-Changed-Why:
    Analyzed.
State-Changed-From-To: open->analyzed
State-Changed-By: gdr
State-Changed-When: Sat Aug 11 12:10:20 2001
State-Changed-Why:
    Patch in progress.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2768&database=gcc


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

* Re: c++/2768: odd warning on spurious 'static'
@ 2002-03-02 20:33 rodrigc
  0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2002-03-02 20:33 UTC (permalink / raw)
  To: bh, gcc-bugs, gcc-prs, gdr

Synopsis: odd warning on spurious 'static'

State-Changed-From-To: analyzed->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Mar  2 20:33:48 2002
State-Changed-Why:
    The error message printed in gcc 3.1 is:
    
    a.cc:8: `static' may not be used when defining (as opposed to declaring) a
       static data member
    a.cc:11: cannot declare member function `static int A::f()' to have static
       linkage

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


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

* c++/2768: odd warning on spurious 'static'
@ 2001-05-07 15:36 bh
  0 siblings, 0 replies; 3+ messages in thread
From: bh @ 2001-05-07 15:36 UTC (permalink / raw)
  To: gcc-gnats

>Number:         2768
>Category:       c++
>Synopsis:       odd warning on spurious 'static'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon May 07 15:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Benoit Hudson
>Release:        2.92.2 and codesourcery 2001-05-07
>Organization:
>Environment:

>Description:
The illegal code in the how-to-repeat section produces the
message:
	"static member `A::data' re-declared as static"

That's rather obscure.  The message for the identical 
situation for functions is slightly more illuminating:
	"cannot declare member function `A::f()' to have static linkage"
>How-To-Repeat:
class A {
    public:
        static int data;
        static int f();
};
static int A::data;
static int A::f() { return 0; }
>Fix:
Fix the message for data members to be the same as for
functions.
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-03-03  4:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-11 12:10 c++/2768: odd warning on spurious 'static' gdr
  -- strict thread matches above, loose matches on Subject: below --
2002-03-02 20:33 rodrigc
2001-05-07 15:36 bh

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