https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98108
--- Comment #8 from i.hamsa at gmail dot com ---
After re-reading the relevant parts of the standard, I have convinced myself
that the program is indeed not required to work unless is included,
even in a single-threaded version. Even though the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98108
--- Comment #2 from i.hamsa at gmail dot com ---
The standard streams are not user defined objects. They need to be initialized
before any user code touches them, before `main`, before everything, no matter
what. This is exactly the purpose of
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: i.hamsa at gmail dot com
Target Milestone: ---
Iostreams initialization doesn't work in multithreaded environments.
To reproduce one needs two source files:
// file1.cc
#include
void threa
: unassigned at gcc dot gnu.org
Reporter: i.hamsa at gmail dot com
Target Milestone: ---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88829
i.hamsa at gmail dot com changed:
What|Removed |Added
CC||i.hamsa at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90322
i.hamsa at gmail dot com changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57433
i.hamsa at gmail dot com changed:
What|Removed |Added
CC||i.hamsa at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68344
--- Comment #2 from i.hamsa at gmail dot com ---
Indeed. I somehow missed that option. It probably would be logical for
-Wold-style-declaration to imply -Wstrict-prototypes, but this is a minor
issue.
: c
Assignee: unassigned at gcc dot gnu.org
Reporter: i.hamsa at gmail dot com
Target Milestone: ---
The following minimal test case
int a();
generates no warning when -Wold-style-declaration -std=c11 is specified.
It is expected that a warning should be produced.
The