This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/4646: Internal compiler error when using bit field named 'identity' and #include <map>
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/4646: Internal compiler error when using bit field named 'identity' and #include <map>
- From: rjackson at apcinc dot com
- Date: 22 Oct 2001 16:21:05 -0000
- Reply-To: rjackson at apcinc dot com
>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: