Bug 4646 - Internal compiler error when using bit field named 'identity' and #include <map>
Summary: Internal compiler error when using bit field named 'identity' and #include <map>
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 2.95.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-22 09:26 UTC by rjackson
Modified: 2003-07-25 17:33 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rjackson 2001-10-22 09:26:01 UTC
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

Release:
gcc version 2.95.2 19991024 (release)

Environment:
Suse Linux 7.1

How-To-Repeat:
g++ -o test test.cpp
Comment 1 rjackson 2001-10-22 09:26:01 UTC
Fix:
correctly reference field xx.id instead of xx.identity.
Comment 2 Kriang Lerdsuwanakij 2001-10-23 02:38:01 UTC
State-Changed-From-To: open->closed
State-Changed-Why: Fixed in gcc 3.0 and main trunk.