This is the mail archive of the gcc-prs@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]

c++/4646: Internal compiler error when using bit field named 'identity' and #include <map>



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]