Q:

std::nothrow doesnt work as expected - Condition is always false

#include <iostream>

int main() {

    int *xx = new (std::nothrow) int[2];

    if(xx == NULL)
    {
        exit(1);
    }

    return 0;
}

Im trying to use nothrow, but clion says about xx == NULL that "Condition is always false", and about exit(1) that  "Unreachable code". What am i doint wrong?

A:

That's a bug in CLion - CPP-989

