pgc++ compiling error: union_find_last_lp_per_handler

Hi all,

I am using pgc++ to port some code previously compiled with g++. I received the following error:

$ pgc++ -fPIC   -I../../lib -I../../../nextgen/lib -DMAX_PATH=4096 -O2 -m64 -pthread     -MD -c abstract_iostream.cpp -o abstract_iostream.o

... ...

PGCC-S-0000-Internal compiler error. union_find_last_lp_per_handler:empty throw_bih       0 (/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iostream: 638)
PGCC/x86 Linux 13.5-0: compilation completed with severe errors

I created siterc to support the -pthread flag according to

Any suggestion on the possible cause of this error is appreciated. Thank you.


Hi Kevin,

This looks the same as a known compiler issue (TPR#19250) which will be fixed in the upcoming 13.6 release. The work around is to compile at “-O1” instead of “-O2”.

Best Regards,

Thank you. That fixes my problem.