This is the mail archive of the gcc@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]

Re: Could egcs warn at (int*)(int)(x)?


Sorry, I forgot to mention that it was a C++ program.
Obviously gcc warns about such problems, but g++ does not.

  int* foo=(int*)((int)bar + delta);

Tobias Polzin


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