[cfe-dev] Refs are assumed not-null. How to disable?

Óscar Fuentes ofv at wanadoo.es
Fri May 30 10:28:35 PDT 2014


With optmizations on, the `return' on this code:

bool foo(int &k) {
  return &k != nullptr;
}

is reduced to `return true;'.

Is there an option for disabling this optimization?




More information about the cfe-dev mailing list