This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/6945: A static constant that is initialize inline is not create if only a temperary is used


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]