[Bug c++/85348] ostringstream with #pragma pack(1) causes stack smashing error

2018-04-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85348 --- Comment #6 from Martin Sebor --- (In reply to Martin Sebor from comment #5) ... > Another alternative would be to implicitly reset the #pragma pack on "entry" > to every C++ standard header (or even every header), and restore it on > "exit."

[Bug c++/85348] ostringstream with #pragma pack(1) causes stack smashing error

2018-04-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85348 Martin Sebor changed: What|Removed |Added Keywords||diagnostic CC|

[Bug c++/85348] ostringstream with #pragma pack(1) causes stack smashing error

2018-04-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85348 --- Comment #4 from Jonathan Wakely --- What warning do you expect? The problem is not specific to ostringstream, so we can't just add a warning when you try to use packing with that particular type. It happens for any code which you link to and

[Bug c++/85348] ostringstream with #pragma pack(1) causes stack smashing error

2018-04-11 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85348 Andreas Schwab changed: What|Removed |Added Resolution|FIXED |INVALID

[Bug c++/85348] ostringstream with #pragma pack(1) causes stack smashing error

2018-04-11 Thread crillion at tiscali dot it
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85348 crillion at tiscali dot it changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #3 from cr

[Bug c++/85348] ostringstream with #pragma pack(1) causes stack smashing error

2018-04-11 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85348 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/85348] ostringstream with #pragma pack(1) causes stack smashing error

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