--- Comment #12 from pcarlini at suse dot de 2006-04-22 19:54 ---
*** Bug 27258 has been marked as a duplicate of this bug. ***
--
pcarlini at suse dot de changed:
What|Removed |Added
--- Comment #9 from broeni at osb-systems dot com 2006-02-07 12:52 ---
Obviously the behavior of the test program is undefined.
The following is the reply from Alberto Ganesh Barbati in c.l.c++.m
Apart from the fact that you need to include ostream in order to be
able to write on
--- Comment #10 from broeni at osb-systems dot com 2006-02-07 13:19 ---
See comment #9 for reason.
Stephan
--
broeni at osb-systems dot com changed:
What|Removed |Added
--- Comment #11 from pcarlini at suse dot de 2006-02-07 13:59 ---
Thanks a lot for the torough clarification!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26123
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-02-06 13:13 ---
Oh, I was using 4.0.2's shared library still when testing, woops.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #6 from pcarlini at suse dot de 2006-02-06 13:16 ---
Ok. mainline is also confirmed fine on ia64-linux.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26123
--- Comment #7 from rguenth at gcc dot gnu dot org 2006-02-06 15:07 ---
I think this is undefined. Reduced testcase:
extern C void *malloc(__SIZE_TYPE__ n);
int mkCint();
const int cInt = mkCint();
struct Ptr {
Ptr() { ptr = (int *)malloc(sizeof(int)); }
int *ptr;
};
Ptr p;
int
--- Comment #8 from broeni at osb-systems dot com 2006-02-06 19:28 ---
Posted code as from comment #2 to c.l.c++.m to verify if the initalization of
std::cout is well defined (comment #3): Initialization order of std::cout.
Stephan
--