public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9259: Error on initialization of static member variable with sizeof(function_call())
@ 2003-04-07 11:06 Giovanni Bajo
0 siblings, 0 replies; 3+ messages in thread
From: Giovanni Bajo @ 2003-04-07 11:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/9259; it has been noted by GNATS.
From: "Giovanni Bajo" <giovannibajo@libero.it>
To: <gcc-gnats@gcc.gnu.org>,
<gcc-bugs@gcc.gnu.org>,
<nobody@gcc.gnu.org>,
<bangerth@ticam.utexas.edu>,
<gcc-prs@gcc.gnu.org>
Cc: "Wolfgang Bangerth" <bangerth@ices.utexas.edu>
Subject: Re: c++/9259: Error on initialization of static member variable with sizeof(function_call())
Date: Mon, 7 Apr 2003 12:59:34 +0200
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
r=9259
Reconfirmed for 2.95 -> 3.3 as of today (please bump [date]), and I agree
that the code should compile.
Giovanni Bajo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/9259: Error on initialization of static member variable with sizeof(function_call())
@ 2003-01-15 17:04 bangerth
0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-01-15 17:04 UTC (permalink / raw)
To: bangerth, gcc-bugs, gcc-prs, nobody
Synopsis: Error on initialization of static member variable with sizeof(function_call())
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Jan 15 09:04:24 2003
State-Changed-Why:
Volker already agreed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9259
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/9259: Error on initialization of static member variable with sizeof(function_call())
@ 2003-01-10 14:56 bangerth
0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-01-10 14:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 9259
>Category: c++
>Synopsis: Error on initialization of static member variable with sizeof(function_call())
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 10 06:56:03 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
since at least 2.95 and up to present 3.4
>Description:
This surprisingly simple piece of code (modified from
BOOST) does not (and did never with any version of gcc)
compile:
------------------------------
struct S
{
static int check ();
static const int value = sizeof(check());
};
------------------------------
tmp/g> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c h.cc
h.cc:4: error: invalid use of undefined type `struct S'
h.cc:2: error: forward declaration of `struct S'
Volker (with help by Comeau's and SGI's compilers) and icc
also agree that this should compile.
W.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-04-07 11:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-07 11:06 c++/9259: Error on initialization of static member variable with sizeof(function_call()) Giovanni Bajo
-- strict thread matches above, loose matches on Subject: below --
2003-01-15 17:04 bangerth
2003-01-10 14:56 bangerth
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).