Bug 79271 - Internal compiler error (ICE) in 'tsubst_copy' when combining constexpr array and higher order functions
Summary: Internal compiler error (ICE) in 'tsubst_copy' when combining constexpr array...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 7.0.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2017-01-29 20:19 UTC by Vittorio Romeo
Modified: 2018-03-07 14:51 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail: 5.4.0, 6.3.0, 7.0
Last reconfirmed: 2017-01-30 00:00:00


Attachments
Reproducible ICE file (156 bytes, text/plain)
2017-01-29 20:19 UTC, Vittorio Romeo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vittorio Romeo 2017-01-29 20:19:44 UTC
Created attachment 40617 [details]
Reproducible ICE file

This bug can be reproduced on the trunk version of g++ by compiling with:
g++ -std=c++1z ice.cpp

---

* Removing the `constexpr` at line 10

...OR...

* Changing the `auto` to `int` at line 11

...OR...

* Changing `Ts{}...` to `1,2,3` at line 10

...prevents the ICE.

---
Comment 1 Martin Liška 2017-01-30 09:03:33 UTC
Confirmed.
Comment 2 Marek Polacek 2018-03-07 14:51:53 UTC
Fixed by r251433.  Not backportable.