[Bug c++/92270] New: Non-const ref treated as const-ref in the compiler.

2019-10-29 Thread jostaberry.jam at gmail dot com
: 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 ==

[Bug c++/92270] Non-const ref treated as const-ref in the compiler.

2019-10-29 Thread jostaberry.jam at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92270 Yuki Wada changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/90393] New: [9 Regression] ICE in return statement with a conditional operator, one of the second and third arguments is throw, and the other is a const variable of a class with a nontrivial

2019-05-08 Thread jostaberry.jam at gmail dot com
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