[Bug c++/40391] New: Segfault with -O, iostream, anonymous namespace on PPC

2009-06-09 Thread fp at mc dot com
gnedTo: unassigned at gcc dot gnu dot org ReportedBy: fp at mc dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: powerpc-timesys-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40391

[Bug c++/40391] Segfault with -O, iostream, anonymous namespace on PPC

2009-06-09 Thread fp at mc dot com
--- Comment #1 from fp at mc dot com 2009-06-09 19:05 --- Created an attachment (id=17972) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17972&action=view) iostest.zip ZIP file containing source and preprocessed code. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40391

[Bug middle-end/40391] Segfault with -O, iostream, anonymous namespace on PPC

2009-06-10 Thread fp at mc dot com
--- Comment #6 from fp at mc dot com 2009-06-10 12:50 --- Jonathan, thank you for identifying the bug in my original code. According to my copy of ISO 14992:1998, std::iostream does not have a default constructor. However, my reading of the standard leads me to believe that it is

[Bug middle-end/40391] Segfault with -O, iostream, anonymous namespace on PPC

2009-06-10 Thread fp at mc dot com
--- Comment #7 from fp at mc dot com 2009-06-10 12:51 --- Created an attachment (id=17974) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17974&action=view) iostest.zip Fixes test case to avoid invalid code. (Passes null pointer to base class then calls this->i

[Bug middle-end/40391] Segfault with -O, iostream, anonymous namespace on PPC

2009-06-10 Thread fp at mc dot com
--- Comment #9 from fp at mc dot com 2009-06-10 13:18 --- gdb reports Program received signal SIGSEGV, Segmentation fault. 0x10001384 in make () at /opt/timesys/toolchains/lib/gcc/powerpc-timesys-linux-gnu/4.2.1/../../../../powerpc-timesys-linux-gnu/include/c++/4.2.1/ostream:366

[Bug middle-end/40391] Segfault with -O, iostream, anonymous namespace on PPC

2009-06-10 Thread fp at mc dot com
--- Comment #10 from fp at mc dot com 2009-06-10 13:20 --- Created an attachment (id=17975) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17975&action=view) disassemble.txt Assembly dump of the function that crashes. gdb reports that the crash occurs at address 0x1

[Bug c++/25006] New: failure "using" a name contained in a class

2005-11-23 Thread fp at mc dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fp at mc dot com GCC build triplet: mingw-special GCC host triplet: mingw-special GCC target triplet: mingw-special ht