https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86184
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86184
--- Comment #8 from Marek Polacek ---
Author: mpolacek
Date: Fri Jun 29 15:25:14 2018
New Revision: 262254
URL: https://gcc.gnu.org/viewcvs?rev=262254=gcc=rev
Log:
PR c++/86184
* tree.c (cp_save_expr): Don't call save_expr for
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86184
Eric Gallager changed:
What|Removed |Added
Keywords||patch
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86184
--- Comment #6 from Marek Polacek ---
https://gcc.gnu.org/ml/gcc-patches/2018-06/msg01345.html
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86184
--- Comment #5 from Marek Polacek ---
Runtime test:
int j;
struct X {
X() { j++; }
operator bool() { return true; }
};
/* Only create X once. */
bool b = X() ?: false;
bool b2 = X() ? X() : false;
int
main ()
{
if (j != 3)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86184
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86184
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86184
Jonathan Wakely changed:
What|Removed |Added
Keywords||rejects-valid