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]
Other format: [Raw text]

c++/6709: typeof() cannot be used with the :: operator



>Number:         6709
>Category:       c++
>Synopsis:       typeof() cannot be used with the :: operator
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 17 15:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     marco@technoboredom.net
>Release:        gcc-3.1
>Organization:
>Environment:
$ uname -a
CYGWIN_NT-5.0 OBLOMOW 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown

Administrator@OBLOMOW ~
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.1/specs
Configured with: ../gcc-3.1/configure --program-suffix=-3.1 --enable-shared --enable-threads=win32 --enable-languages=c,
c++,objc,f77 --enable-win32-registry : (reconfigured) ../gcc-3.1/configure --prefix=/usr --program-suffix=-3.1 --enable-
shared --enable-threads=win32 --enable-languages=c,c++,objc,f77 --enable-win32-registry
Thread model: win32
gcc version 3.1
>Description:
Using typeof() together with the :: operator results in a parsing error, though typeof() returns a type-expression where :: is applyable (class type etc.). 

The message is 'parse error before ";" token'
>How-To-Repeat:
The file attachment 'a.cc' produces the message for line 10.  
>Fix:

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

c3RydWN0IFggDQp7DQogIHR5cGVkZWYgaW50IFk7IA0KICBpbnQgeTsgDQp9OyANCg0KaW50IG1h
aW4oICkNCnsNCiAgWCB4OyANCiAgdHlwZW9mKHgpOjpYIHE7IC8vIEhlcmU6IHBhcnNpbmcgZXJy
b3INCn0NCg==


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