This is the mail archive of the gcc-bugs@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++/9785: Internal compiler error 192 when trying to assign local value to a local classes member.


>Number:         9785
>Category:       c++
>Synopsis:       Internal compiler error 192 when trying to assign local value to a local classes member.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 21 00:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Pitts
>Release:        2.95.3 20010315
>Organization:
>Environment:
NetBSD 1.6
>Description:
I get an internal compiler error instead of a proper message. I'm assuming this is incorrect c++, but either way it should report why.

# 1 "test.cc"

void main()
{
    int local = 3;
    class { public: static const int x = local } b;
}

>How-To-Repeat:
Simply compile the above code.
>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]