Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1649893

Summary: Internal compiler error in reshape_init_r
Product: Red Hat Developer Toolset Reporter: Lambin Alexandre <alexandre.lambin>
Component: gccAssignee: Marek Polacek <mpolacek>
Status: CLOSED ERRATA QA Contact: Alexandra Petlanová Hájková <ahajkova>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: DTS 7.1 RHEL 7CC: ahajkova, jakub, kanderso, law, mcermak, mnewsome, mpetlan, ohudlick
Target Milestone: alpha   
Target Release: 8.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: devtoolset-9-gcc-9.1.1-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-10 07:49:25 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
C++ example with the error code. none

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