I ran into two (apparently different) internal compiler errors on the attachment.
Issue (a):
unexpected expression āIā of kind template_parm_index
appears to be a duplicate of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84785
(I saw it on gcc-7-branch with r258233, and I no longer see it after updating to r259103, so presumably fixed by r258409 on that branch).
Issue (b) is the failure of this assertion in gcc/cp/call.c:
8243 gcc_assert (!force_elide);
which still seeing on trunk.
I've filed this one upstream as:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85215
Created attachment 1414831 [details] preprocessed Description of problem: compiled with g++ -o logsumexp.cpython-36m-x86_64-linux-gnu.os -c -g -std=c++1z -O3 -march=native -fvisibility=hidden -flto -DNDEBUG -ffast-math -fPIC -I/home/nbecker/.local/include/xtensor-blas/flens -I/home/nbecker/.local/include -I/usr/include/eigen3 -I/home/nbecker/.local/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m logsumexp.cc Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: