[Bug sanitizer/80269] ICE with compile time constant sized array when using address sanitizer

2017-03-31 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80269

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #2 from Jakub Jelinek  ---
With -std=c++11 the assumption that this is compile time constant sized array
is bogus, std::max is constexpr only in -std=c++14 and later.  It doesn't
matter if your variable is const, it is still initialized at runtime, so char
array[LIM]
is a VLA and this ICEs because of the PR79993.

*** This bug has been marked as a duplicate of bug 79993 ***

[Bug sanitizer/80269] ICE with compile time constant sized array when using address sanitizer

2017-03-31 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80269

Richard Biener  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-03-31
 Ever confirmed|0   |1
  Known to fail||6.3.1, 7.0.1

--- Comment #1 from Richard Biener  ---
Confirmed on trunk/branch.  Works with c++14 (detail of std::max?).