c++/754: name lookup performed incorrectly in presence of enumerator names

rovf@earthling.net rovf@earthling.net
Thu Nov 9 01:16:00 GMT 2000


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


More information about the Gcc-bugs mailing list