This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/6945: A static constant that is initialize inline is not create if only a temperary is used
- From: spamjunk at stny dot rr dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 6 Jun 2002 13:25:59 -0000
- Subject: c++/6945: A static constant that is initialize inline is not create if only a temperary is used
- Reply-to: spamjunk at stny dot rr dot com
>Number: 6945
>Category: c++
>Synopsis: A static constant that is initialize inline is not create if only a temperary is used
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 06 06:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: spamjunk@stny.rr.com
>Release: unknown-1.0
>Organization:
>Environment:
dos/windows
>Description:
#include <iostream>
using namespace std;
class T {
public:
static const int i = 10;
};
int main()
{
cout << T().i << endl;
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: