------- 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

Reply via email to