[Bug c++/112658] [12/13/14 Regression] ICE: finish_expr_stmt with casting an temp array to pointer and constructor call

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 21 22:35:58 GMT 2023


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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Hmm GCC rejects:
```
struct foo{
  foo(const int *new_mac);
};
typedef int t[1];

void g(){
  foo f(t{ 0xFC});
}
```
While clang, MSVC all accepts it ...


More information about the Gcc-bugs mailing list