https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118282

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
            Summary|GCC fails to identify       |[12/13/14/15 Regression]
                   |feasible type conversion    |GCC fails to identify
                   |scheme between operands of  |feasible type conversion
                   |conditional expression      |scheme between operands of
                   |                            |conditional expression
   Last reconfirmed|                            |2025-01-03
             Status|UNCONFIRMED                 |NEW
      Known to fail|                            |4.0.4

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
A C++98 testcase which shows this is a regression:
```
struct A
{
  explicit A(int);
  operator void*() const;
};

void foo(const A& x) {
     void *res = 0 ? x : 0; 
}
int main(){
    A a(5);
    foo(a);
}

```

Reply via email to