I am compiling a code that includes the C++ Mathematical Expression Library (http://www.partow.net/programming/exprtk/). Using nvc++ 23.5.0 I get the following error message
exprtk.hpp", line 11781: internal error: assertion failed at: "templates.cpp", line 17582 in instantiate_default_argument
if (is_vector_node(branch()))
^
1 catastrophic error detected in the compilation of "/lustre/home/xxx/gsFunctionExpr_.cpp".
Any help is appreciated.
The issue you are encountering is related to a bug found in the EDG C++ front-end related to how default arguments are handled.
My understanding is that in the latest version of the EDG front-end, this issue has been resolved.
Thanks for your answer. I am using nvc++ 23.5.0. What is the latest version of the EDG front-end and how can I test it?
nvc++ uses EDG as our front-end C++ compiler but it not something you can update yourself.
I just checked and it appears the error still occurs in our development compiler so have filed a problem report, TPR #34014, and sent to engineering for investigation.
1 Like