Pointer to function causing rootcint crash?


I am trying to implement an array of pointers to functions in a class which inherits from TObject. I get a segfault from rootcint when it tries to compile the root dictionary that is created. I am running root 5.22/00 on with gcc v 3.4.3

The header looks like this:

#ifndef PARAM
#define PARAM

#include <TObject.h>

class param:public TObject{

//typedef to save typing
typedef void (param::*Operation)(float &lhs);

// this is the array of function pointers
param::Operation *fOperation;
ClassDef(param, 1);


The cpp file simple contains and empty c’tor

Upon compilation, I get a seg fault from rootcint

[coganp@pcp177897pcs genetic]$ make
g++ -o out/param.o -c -Wall -g -fPIC -O3 -I…/common/include -Iinclude -I. -pthread -m64 -I/usr/local/include/root -I/usr/include/mysql -g -pipe -m64 src/param.cpp
/home/coganp/software/root/bin/rootcint -v -f out/root_dict.cpp -c -p -I…/common/include -Iinclude -I. include/param.h include/LinkDef.h
make: *** [out/root_dict.cpp] Segmentation fault
make: *** Deleting file `out/root_dict.cpp’
[coganp@pcp177897pcs genetic]$

Sorry - I should add that if I place #ifndef CINT around
param::Operation *fOperation
that it compiles ok.

Double post, see root.cern.ch/phpBB2/viewtopic.php?p=37762