This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18391] internal error: Segmentation fault for valid code segment
- From: "asachdeva at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Nov 2004 09:26:17 -0000
- Subject: [Bug c++/18391] internal error: Segmentation fault for valid code segment
- References: <20041109061223.18391.asachdeva@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From asachdeva at gmail dot com 2004-11-09 09:26 -------
The following code also crashes. Can somebody suggest a workaround while I am
using gcc 3.2
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
extern bool cond;
int (*funcPtr)();
#define printf
int foobar(int foo, int bar = ((cond?funcPtr:(fprintf(stderr, "problem at
%s:%s\n", __FILE__, __LINE__), abort()))()), int foob=8);
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18391