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]

Re: Bug in gcc


    Both Microsoft C++ compiler and
    Sun Workshop C compiler evaluates
    the expression and increments B and C
    twice.

That's permitted too.  You are writing an undefined program, which means
that any result is permitted by the compiler.  Please read the C standard
carefully on the topic of "sequence points".


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