[Bug c++/84559] [7/8 Regression] ICE with constexpr and variable-sized array

2018-02-26 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84559 Jason Merrill changed: What|Removed |Added Keywords|ice-on-valid-code |ice-on-invalid-code Status|A

[Bug c++/84559] [7/8 Regression] ICE with constexpr and variable-sized array

2018-02-26 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84559 --- Comment #4 from Jason Merrill --- Author: jason Date: Mon Feb 26 21:55:41 2018 New Revision: 258015 URL: https://gcc.gnu.org/viewcvs?rev=258015&root=gcc&view=rev Log: PR c++/84559 - ICE with constexpr VLA. * constexpr.c (ens

[Bug c++/84559] [7/8 Regression] ICE with constexpr and variable-sized array

2018-02-26 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84559 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug c++/84559] [7/8 Regression] ICE with constexpr and variable-sized array

2018-02-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84559 --- Comment #3 from Jakub Jelinek --- That said, we accept: void foo(int i) { constexpr char x[i] = {1, 2, 3}; } clang++ rejects both: error: constexpr variable cannot have non-literal type 'char const[i]'

[Bug c++/84559] [7/8 Regression] ICE with constexpr and variable-sized array

2018-02-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84559 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org Vers