: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jostaberry.jam at gmail dot com
Target Milestone: ---
GCC rejects this valid code, but it can be compiled without "i = 0;".
And as expected, Overload #1 is selected.
=== CODE ==
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92270
Yuki Wada changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
gmail dot com
Target Milestone: ---
This ICE occurred if the return statement is a conditional operator, one of the
second and third operands is throw, and the other is a const variable of a
class with a non-trivial copy constructor.
=== code: prog.cc