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] |
|
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 |
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |