This is the mail archive of the gcc-bugs@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++/754: name lookup performed incorrectly in presence of enumerator names



>Number:         754
>Category:       c++
>Synopsis:       name lookup performed incorrectly in presence of enumerator names
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 09 01:16:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Ronald Fischer
>Release:        unknown-1.0
>Organization:
>Environment:
$ g++ -v; uname -a
Reading specs from /usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
gcc version 2.95.2 19991024 (release)
SunOS ix05 5.7 Generic_106541-10 sun4u sparc SUNW,Ultra-1
>Description:
According to 3.4.3/1, enumerator names should be ignored during the 
lookup for a name preceding the scope resolution operator. gcc
2.95.2 does not complie to this: The program enclosed as attachment
produces the error message

ubit.cc:10: parse error before `::'
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="ubit.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ubit.cc"

bmFtZXNwYWNlIGZvbwp7CiAgICBuYW1lc3BhY2UgYmFyCiAgICB7CiAgICAgICAgZW51bSB4IHtm
b28KICAgICAgICB9OwogICAgICAgIAogICAgICAgIGVudW0ge3ViaXQwICAgICAgID0gMHgwMDAx
fTsKICAgICAgICBpbnQgaT1mb286OmJhcjo6dWJpdDA7CiAgICB9Cn0KCg==

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