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]

malloc(0) during exception throw & catch


Hello,

Small test:

#include <exception>

void bad() {
  throw exception();
}

int main() {
    try {
      bad();
    } catch (exception &) {
    }
  return 0;
}

And all memory races detection tools says that there is call of malloc(0) inside it.
Is there any reasonable explanations to this?

-- 
Sincerely Yours,
Denis Perchine

----------------------------------
E-Mail: dyp@perchine.com
HomePage: http://www.perchine.com/dyp/
FidoNet: 2:5000/120.5
----------------------------------

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