[Bug c++/90757] inlining skips function parameter initialization

2019-06-06 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90757 --- Comment #4 from Richard Biener --- myScalarToCooked is of course similar broken. The following works fine for me: #include /** Inefficient convenience function for converting a single value to cooked */ double myScalarToCooked(int32_t raw

[Bug c++/90757] inlining skips function parameter initialization

2019-06-06 Thread jens.georg at desy dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90757 --- Comment #3 from Jens Georg --- I mean even if the code in main is invalid, so what. If we replace that by memcopy, the function argument is still not initialized when inlined. IMHOt there's something fishy, but well. your decision

[Bug c++/90757] inlining skips function parameter initialization

2019-06-06 Thread martin.hierholzer at desy dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90757 --- Comment #2 from Martin Hierholzer --- Shouldn't all forms of this code then give an error message or at least a warning (preferably not something misleading like "used uninitialized")? I my opinion, it shouldn't matter whether the function is

[Bug c++/90757] inlining skips function parameter initialization

2019-06-06 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90757 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---