https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90659
Jakub Jelinek changed:
What|Removed |Added
Target Milestone|9.3 |9.4
--- Comment #8 from Jakub Jelinek
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90659
--- Comment #7 from Jakub Jelinek ---
The following fixes the ICE:
--- gcc/cp/constexpr.c.jj 2019-11-16 18:13:28.524822284 +0100
+++ gcc/cp/constexpr.c 2019-11-18 19:38:40.032618830 +0100
@@ -39,7 +39,7 @@ along with GCC; see the file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90659
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90659
Jakub Jelinek changed:
What|Removed |Added
Target Milestone|9.2 |9.3
--- Comment #5 from Jakub Jelinek
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90659
--- Comment #4 from G. Steinmetz ---
A modified variant :
$ cat z2.cc
template
void foo (int n)
{
int a[n];
[a]{};
}
void bar ()
{
foo (2);
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90659
Richard Biener changed:
What|Removed |Added
Priority|P3 |P2
Target Milestone|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90659
--- Comment #3 from Marek Polacek ---
Looks like missing verify_constant after the get_array_or_vector_nelts call.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90659
--- Comment #2 from Marek Polacek ---
The crash is here:
3126 unsigned HOST_WIDE_INT max = tree_to_uhwi (nelts);
(gdb) p nelts
$1 =
(gdb) pge
(sizetype) (SAVE_EXPR <(ssizetype) n + -1>) + 1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90659
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|