Bug 1649893 - Internal compiler error in reshape_init_r
Summary: Internal compiler error in reshape_init_r
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Developer Toolset
Classification: Red Hat
Component: gcc
Version: DTS 7.1 RHEL 7
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: alpha
: 8.1
Assignee: Marek Polacek
QA Contact: Alexandra Petlanová Hájková
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-14 17:53 UTC by Lambin Alexandre
Modified: 2019-12-10 07:49 UTC (History)
8 users (show)

Fixed In Version: devtoolset-9-gcc-9.1.1-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-10 07:49:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
C++ example with the error code. (592 bytes, text/plain)
2018-11-14 17:53 UTC, Lambin Alexandre
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 88028 0 'P3' 'RESOLVED' 'internal compiler error: in reshape_init_r, at cp/decl.c:6159' 2019-12-06 22:49:46 UTC
Red Hat Product Errata RHEA-2019:4134 0 None None None 2019-12-10 07:49:45 UTC

Description Lambin Alexandre 2018-11-14 17:53:14 UTC
Created attachment 1505748 [details]
C++ example with the error code.

Description of problem:
internal compiler error: in reshape_init_r, at cp/decl.c:6152

Version-Release number of selected component (if applicable):
RedHat 7 with devtoolset 7.1
Compiling using GCC 7.3 with C++17 enabled.


How reproducible:
Using gcc 7.3 and the option "-O3 --std=c++17 -Wall -Wextra"
I attached an CPP example file

Steps to Reproduce:
1. gcc -O3 --std=c++17 -Wall -Wextra -c -o example.o example.cpp

Actual results:
source>: In instantiation of 'constexpr const std::array<Data, 2> Foo<FooTA>::test':

<source>:45:18:   required from here

<source>:21:33: internal compiler error: in reshape_init_r, at cp/decl.c:6152

     static constexpr auto const test = std::array {

                                 ^~~~

Please submit a full bug report,

with preprocessed source if appropriate.


Expected results:
No error

Additional info:

Comment 2 Marek Polacek 2018-11-14 20:51:54 UTC
This looks like a new bug, also present in gcc mainline.  I'll reduce and open an upstream PR.  We'll evaluate the fix once we've fixed this on trunk.

Comment 6 Marek Polacek 2019-02-05 16:16:14 UTC
Fixed upstream, will backport to gcc-8 and DTS 8.1.

Comment 8 Marek Polacek 2019-02-05 19:54:29 UTC
Patch backported to gcc-8, will be in the next update from Fedora.

Comment 15 errata-xmlrpc 2019-12-10 07:49:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:4134


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