Function Objects -- Internal Compiler Bug

Paul Serice ugs@laci.net
Sat Mar 6 19:36:00 GMT 1999


Under Debain Linux, I've run across a rather obscure syntax regarding
function objects that isn't working under 2.91.61.  Admittedly, the
work-around is trivial; still, the following code does compile and run
cleanly on an SGI.

The long and short of it is that I get an internal compiler error
whenever I try to instantiate a function object AND invoke the call
operator all in one step:

    FuncObj()();


The FAQ instructed me to gather some files.  They are enclosed.


Paul Serice
FuncObj.tar.gz



More information about the Gcc-bugs mailing list