Nvc++ exits with internal error when compiling nlohmann/json.hpp

$ nvc++  -stdpar --std c++17  b.cpp
"nlohmann/json.hpp", line 18046: internal error: assertion failed: missing
          default rescan info (exprutil.c, line 4731 in get_expr_rescan_info)

                 detail::is_basic_json<BasicJsonType>::value&& !std::is_same<basic_json, BasicJsonType>::value, int > = 0 >

1 catastrophic error detected in the compilation of "b.cpp".
Compilation aborted.
nvc++-Fatal-/opt/nvidia/hpc_sdk/Linux_x86_64/20.7/compilers/bin/tools/cpp1 TERMINATED by signal 6

b.cpp contains a single line which includes json.hpp taken from https://github.com/nlohmann/json

Thanks andrew7. I was able to recreate the error and added a problem report (TPR #28967).


This has been addressed in the latest release, version 20.9.

  • Brent