g++ compiler bug?

Paul Robertson paul.robertson@locsoft.com
Wed Jan 12 06:51:00 GMT 2000


I wrote the attached program to demonstrate a point about 
overloading operator++ to a collegue.
I expected a compiler error from the statement
 
i++++;
 
and I do get an error under MSVC 6.0, but not from g++. I 
think this is a bug.
 
The platform is a Pentium PC with SuSE Linux 6.2 installed 
(kernel 2.2.10).
The g++ version is egcs-2.91.66
 
Paul Robertson LocSoft Limited "The key to your embedded 
solutions" www.locsoft.com Phone +44 
(0) 1793 432557 Fax     +44 (0) 1793 
432727
optest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: optest.cpp
Type: text/x-c++
Size: 495 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000112/e1c5bd7f/attachment.bin>


More information about the Gcc-bugs mailing list