[Bug c++/88528] [7 Regression] ICE with templated operator bool() in gcc 7

2019-11-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88528

Richard Biener  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
   Target Milestone|7.5 |8.0
  Known to fail||7.5.0

--- Comment #5 from Richard Biener  ---
Fixed in GCC 8.

[Bug c++/88528] [7 Regression] ICE with templated operator bool() in gcc 7

2018-12-17 Thread proski at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88528

--- Comment #4 from Pavel Roskin  ---
The trivial backport of PR c++/85032 fixes both my testcase and the original
issue with my code. Please include the fix in gcc 7.5.

[Bug c++/88528] [7 Regression] ICE with templated operator bool() in gcc 7

2018-12-17 Thread proski at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88528

--- Comment #3 from Pavel Roskin  ---
I ran "git bisect" between gcc 7.1.0 (affected) and gcc 8.1.0 (unaffected).
Following commit fixed the issue:

https://github.com/gcc-mirror/gcc/commit/e0ccd4807edc919735b4d86590b5a9def529f91c

2018-04-11  Marek Polacek  

PR c++/85032
* constexpr.c (potential_constant_expression_1): Consider conversions
from classes to literal types potentially constant.

The original issue: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85032

It's a short fix that also adds a similar testcase. The fix can be applied to
gcc-7-branch. Let's see if it fixes my testcase and also my "real world" issue.

[Bug c++/88528] [7 Regression] ICE with templated operator bool() in gcc 7

2018-12-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88528

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2
 Status|UNCONFIRMED |NEW
  Known to work||6.5.0, 8.1.0
   Keywords||ice-on-valid-code
   Last reconfirmed||2018-12-17
 Ever confirmed|0   |1
Summary|ICE with templated operator |[7 Regression] ICE with
   |bool() in gcc 7 |templated operator bool()
   ||in gcc 7
   Target Milestone|--- |7.5
  Known to fail||7.1.0, 7.4.0

--- Comment #2 from Richard Biener  ---
Confirmed.