public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4646: Internal compiler error when using bit field named 'identity' and #include <map>
@ 2001-10-23  2:38 lerdsuwa
  0 siblings, 0 replies; 2+ messages in thread
From: lerdsuwa @ 2001-10-23  2:38 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, rjackson

Synopsis: Internal compiler error when using bit field named 'identity' and #include <map>

State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Tue Oct 23 02:38:01 2001
State-Changed-Why:
    Fixed in gcc 3.0 and main trunk.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4646&database=gcc


^ permalink raw reply	[flat|nested] 2+ messages in thread

* c++/4646: Internal compiler error when using bit field named 'identity' and #include <map>
@ 2001-10-22  9:26 rjackson
  0 siblings, 0 replies; 2+ messages in thread
From: rjackson @ 2001-10-22  9:26 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4646
>Category:       c++
>Synopsis:       Internal compiler error when using bit field named 'identity' and #include <map>
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 22 09:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Raymond Jackson
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
Suse Linux 7.1
>Description:
Reference to a non-existent field named 'identity' in my
code caused 'internal compiler error'.
You have to have 2 things to cause this
1) #include <map>
2) mystruct.identity = somevalue; (where mystruct is a bit structure with a field named 'identity')

if you change the 'id' field in structure XX (see test.cpp attached) to 'identity' you get a parse error ':' from the compiler.

Your compiler asked me to report this so I hope it helps.
Thanks,
Raymond Jackson
>How-To-Repeat:
g++ -o test test.cpp
>Fix:
correctly reference field xx.id instead of xx.identity.
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-23  2:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-23  2:38 c++/4646: Internal compiler error when using bit field named 'identity' and #include <map> lerdsuwa
  -- strict thread matches above, loose matches on Subject: below --
2001-10-22  9:26 rjackson

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).