https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64372
Manuel López-Ibáñez manu at gcc dot gnu.org changed:
What|Removed |Added
CC||glisse at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64372
Harald van Dijk harald at gigawatt dot nl changed:
What|Removed |Added
CC||harald at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64372
--- Comment #3 from Harald van Dijk harald at gigawatt dot nl ---
BTW, *(ptr ? ptr : throw ptr) would be fine, would not create any temporary, in
any of the language standards.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64372
--- Comment #4 from Tavian Barnes tavianator at gmail dot com ---
I meant to include -std=c++11 in the OP, it still happens with that flag set.
Good suggestion for the replacement though. The actual code was closer to i
length ? a[i] : throw