https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64372
hs <hs at xmission dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hs at xmission dot com --- Comment #8 from hs <hs at xmission dot com> --- I wanted to bump this bug and supply a simpler test-case: void blah(int&) {} int main() { int i{}; blah(true ? i : throw); } result with gcc 6.0: prog.cc: In function 'int main()': prog.cc:6:15: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int' blah(true ? i : throw 0); ~~~~~^~~~~~~~~~~~~ prog.cc:2:6: note: initializing argument 1 of 'void blah(int&)' void blah(int&) {} ^~~~