Bug 1478044 - ICE: in size_binop_loc, at fold-const.c:1767
Summary: ICE: in size_binop_loc, at fold-const.c:1767
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-03 13:26 UTC by Jan Pokorný [poki]
Modified: 2017-08-09 12:37 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-09 12:37:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
preprocessed source (18.15 KB, text/plain)
2017-08-03 13:26 UTC, Jan Pokorný [poki]
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 81695 0 None None None 2017-08-03 13:39:17 UTC

Description Jan Pokorný [poki] 2017-08-03 13:26:39 UTC
Created attachment 1308740 [details]
preprocessed source

# gcc -xc - <<EOF
#include <stdio.h>
int z[] = {};
int main(int argc, char *argv[]) { printf("%d\n", *(z + 1)); }
EOF
> <stdin>: In function ‘main’:
> <stdin>:3:36: internal compiler error: in size_binop_loc, at fold-const.c:1767
> Please submit a full bug report,
> with preprocessed source if appropriate

# rpm -q gcc
> gcc-7.1.1-6.fc27.x86_64

Comment 1 Marek Polacek 2017-08-03 13:33:28 UTC
Confirmed with trunk.  Started with r172261.  Will take this upstream.

Comment 2 Marek Polacek 2017-08-04 11:29:09 UTC
I've committed a fix to GCC mainline, but not sure if I'll backport this to 7.

Comment 3 Marek Polacek 2017-08-09 12:37:52 UTC
I think not.


Note You need to log in before you can comment on or make changes to this bug.