This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14804] initializing const data with reinterpret_cast-ed pointer-to-member function crashes
- From: "1319 at bot dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Apr 2004 19:50:35 -0000
- Subject: [Bug c++/14804] initializing const data with reinterpret_cast-ed pointer-to-member function crashes
- References: <20040401013242.14804.dbaron@dbaron.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From 1319 at bot dot ru 2004-04-03 19:50 -------
No, it is not. Testcase still segfaults if compiled with -funit-at-a-time.
$ g++ -O3 -fno-unit-at-a-time 14804.cc
$ ./a.out
$ g++ -funit-at-a-time 14804.cc
$ ./a.out
Segmentation fault
$
This is true for both 3.4.0 and 3.5.0 from 20040403.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14804