public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9257: Unuseful warning about all member functions being private
@ 2003-01-10 0:56 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-01-10 0:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 9257
>Category: c++
>Synopsis: Unuseful warning about all member functions being private
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 09 16:56:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
All versions of gcc since at least 2.95, until 3.4
>Description:
This warning seems eminently unuseful:
---------------------------
struct C {
static bool result;
private:
static bool check();
};
bool C::result = check();
---------------------------
tmp/g> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -c y.cc
y.cc:1: warning: all member functions in class `C' are private
I know that I can switch this off with -w (can I do so
selectively?), but this does not make much sense anyway,
I think. The code comes modified from BOOST, and the
check function is used to infer properties of the
template argument of C (which I have or course stripped
away here).
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/9257: Unuseful warning about all member functions being private
@ 2003-01-15 9:34 reichelt
0 siblings, 0 replies; 2+ messages in thread
From: reichelt @ 2003-01-15 9:34 UTC (permalink / raw)
To: bangerth, gcc-bugs, gcc-prs, nobody
Synopsis: Unuseful warning about all member functions being private
State-Changed-From-To: open->analyzed
State-Changed-By: reichelt
State-Changed-When: Wed Jan 15 01:34:30 2003
State-Changed-Why:
Confirmed.
See also thread starting in
http://gcc.gnu.org/ml/gcc/2003-01/msg00278.html
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9257
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-15 9:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-10 0:56 c++/9257: Unuseful warning about all member functions being private bangerth
2003-01-15 9:34 reichelt
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).