Bug 1562194

Summary: ICE on logsumexp.cc
Product: [Fedora] Fedora Reporter: Neal Becker <ndbecker2>
Component: gccAssignee: Dave Malcolm <dmalcolm>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: aoliva, davejohansen, dmalcolm, fweimer, jakub, jwakely, law, mpolacek, msebor, nickc, quantum.analyst
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-10 13:55:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
preprocessed none

Description Neal Becker 2018-03-29 18:24:56 UTC
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:

Comment 1 Dave Malcolm 2018-03-29 19:12:50 UTC
Thanks; I'm able to reproduce with both trunk and gcc-7-branch, with:
  ./xg++ -B. -c /tmp/foo.cc -std=c++1z

I'm working on simplifying the reproducer.

Comment 2 Dave Malcolm 2018-04-04 23:33:01 UTC
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

Comment 3 Dave Malcolm 2018-04-05 13:38:17 UTC
PR c++/85215 was fixed 2018-04-05 by r259123

PR c++/84785 was fixed 2018-03-10
  on trunk by r258407
  on gcc-7-branch by r258409 (will be in 7.4.0)

Comment 4 Marek Polacek 2018-08-10 13:55:30 UTC
Both PRs fixed in current F28 gcc.