(In reply to Jan Hubicka from comment #5) > The lifetime of the objects in ?: was extended by 2017 DR as discussed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92831 > This is implemented by Clang7+ but not yet by GCC. So Clang 6 also miscompiles the simplified testcase. > I am attaching a workaround. Thanks for
Bug 1601707 Comment 18 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I will look into this.