Commit 7e2851ab by Jason Merrill

* typeck.c (build_binary_op): Fix pmf comparison logic.

From-SVN: r38473
parent 16e42e7c
#include <new>
using namespace std;
extern "C" void *malloc (size_t);
int special;
int space = 0xdeadbeef;
void *operator new (size_t size) throw (bad_alloc)
{
if (special)
return &space;
return malloc (size);
}
int main ()
{
special = 1;
int *p = new int();
special = 0;
return *p != 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment