public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6435: int static const inicialized inline reported undefined
@ 2002-04-24 5:36 Manuel.Sequeira
0 siblings, 0 replies; 2+ messages in thread
From: Manuel.Sequeira @ 2002-04-24 5:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 6435
>Category: c++
>Synopsis: int static const inicialized inline reported undefined
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Wed Apr 24 05:35:59 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Manuel.Sequeira@iscte.pt
>Release: 3.0.2
>Organization:
>Environment:
Linux Red Hat 7.2
>Description:
// Compile with 'g++ bug.C'
void f(int const& c) {}
struct C {
static int const c = 0;
};
int main() {
f(C::c);
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/6435: int static const inicialized inline reported undefined
@ 2002-04-24 6:16 nathan
0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-04-24 6:16 UTC (permalink / raw)
To: Manuel.Sequeira, gcc-bugs, gcc-prs, nobody
Synopsis: int static const inicialized inline reported undefined
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Wed Apr 24 06:16:35 2002
State-Changed-Why:
not a bug. You have only declared C::c, not defined it.
There must be exactly one out of class definition for C::c.
Refer to [9.4.2]/4
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6435
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-24 13:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-24 5:36 c++/6435: int static const inicialized inline reported undefined Manuel.Sequeira
2002-04-24 6:16 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).