public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9785: Internal compiler error 192 when trying to assign local value to a local classes member.
@ 2003-02-21 0:46 gnuser
0 siblings, 0 replies; 2+ messages in thread
From: gnuser @ 2003-02-21 0:46 UTC (permalink / raw)
To: gcc-gnats
>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:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/9785: Internal compiler error 192 when trying to assign local value to a local classes member.
@ 2003-02-21 2:01 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-02-21 2:01 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, gnuser, nobody
Synopsis: Internal compiler error 192 when trying to assign local value to a local classes member.
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Fri Feb 21 02:01:23 2003
State-Changed-Why:
Already fixed since gcc3.0:
x/bug> /home/bangerth/bin/gcc-3.0.4/bin/c++ -c test.C
test.C: In function `int main()':
test.C:4: field initializer is not constant
test.C:4: missing ';' before right brace
test.C:4: field `int main()::<anonymous class>::x' in local class cannot be
static
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9785
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-21 2:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-21 0:46 c++/9785: Internal compiler error 192 when trying to assign local value to a local classes member gnuser
2003-02-21 2:01 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).