This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12218] [3.4 regression] runtime segfault when initializing global variable with pointer-to-member
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Dec 2003 01:30:31 -0000
- Subject: [Bug c++/12218] [3.4 regression] runtime segfault when initializing global variable with pointer-to-member
- References: <20030908222714.12218.bryner@brianryner.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2003-12-02 01:30 -------
As to a) -- yes, the code is legal. gcc should simply not put a variable
into read-only memory and still emit initializer code. That's a gcc bug,
not a bug in the code.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12218