[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2021-07-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485

Andrew Pinski  changed:

   What|Removed |Added

 Blocks||101603, 55004
 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #12 from Andrew Pinski  ---
Fixed.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004
[Bug 55004] [meta-bug] constexpr issues
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101603
[Bug 101603] [meta-bug] pointer to member functions issues

[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2021-05-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485

Jonathan Wakely  changed:

   What|Removed |Added

 CC||wolfgang.roe...@gi-de.com

--- Comment #11 from Jonathan Wakely  ---
*** Bug 100498 has been marked as a duplicate of this bug. ***

[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2019-10-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485

Jonathan Wakely  changed:

   What|Removed |Added

 CC||eugene at hutorny dot in.ua

--- Comment #10 from Jonathan Wakely  ---
*** Bug 67245 has been marked as a duplicate of this bug. ***

[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2019-04-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485

Jonathan Wakely  changed:

   What|Removed |Added

  Known to work||8.2.0
   Target Milestone|--- |8.2
  Known to fail||7.4.0, 8.1.0

--- Comment #9 from Jonathan Wakely  ---
Jason, I assume you don't plan to backport this to gcc-7-branch?

[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2019-04-18 Thread TonyELewis at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485

--- Comment #8 from Tony E Lewis  ---
As far as I can see on Godbolt, this is now fixed in trunk. I'm happy for this
issue to be closed.

[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2018-06-16 Thread TonyELewis at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485

--- Comment #7 from Tony E Lewis  ---
Ah yes - I'm seeing it compiling cleanly now on Godbolt's trunk (9.0.0
20180615).

Must have been a temporary glitch in the build (and couldn't possibly have been
due to my error :P ).

[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2018-06-15 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485

--- Comment #6 from Marek Polacek  ---
(In reply to Tony E Lewis from comment #5)
> Thanks to all for all work on this.
> 
> (Apologies if this isn't helpful but just in case it is...) I notice that
> the original Godbolt snippet ( https://godbolt.org/g/JnrZss ) has regressed
> from a rejects-valid in 8.1 to an ICE on trunk ("9.0.0 20180610") :

I don't see that.  This compiles fine with trunk:

struct dummy {
  void nonnull() {};
};

typedef void (dummy::*safe_bool)();

constexpr safe_bool a = ::nonnull;

static_assert( static_cast( a ), "" );

int main () { return 0; }

[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2018-06-15 Thread TonyELewis at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485

--- Comment #5 from Tony E Lewis  ---
Thanks to all for all work on this.

(Apologies if this isn't helpful but just in case it is...) I notice that the
original Godbolt snippet ( https://godbolt.org/g/JnrZss ) has regressed from a
rejects-valid in 8.1 to an ICE on trunk ("9.0.0 20180610") :


g++: internal compiler error: Segmentation fault signal terminated program as

Please submit a full bug report,

with preprocessed source if appropriate.

See  for instructions.

Compiler returned: 4

[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2018-06-11 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485

--- Comment #4 from Jason Merrill  ---
Author: jason
Date: Mon Jun 11 18:56:56 2018
New Revision: 261449

URL: https://gcc.gnu.org/viewcvs?rev=261449=gcc=rev
Log:
PR c++/80485 - inline function non-zero address.

* symtab.c (nonzero_address): Check DECL_COMDAT.

Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/expr/pmf-3.C
Modified:
branches/gcc-8-branch/gcc/ChangeLog
branches/gcc-8-branch/gcc/symtab.c

[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2018-05-25 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485

--- Comment #3 from Jason Merrill  ---
Author: jason
Date: Fri May 25 16:44:55 2018
New Revision: 260762

URL: https://gcc.gnu.org/viewcvs?rev=260762=gcc=rev
Log:
PR c++/80485 - inline function non-zero address.

* symtab.c (nonzero_address): Check DECL_COMDAT.

Added:
trunk/gcc/testsuite/g++.dg/expr/pmf-3.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/symtab.c

[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2018-05-22 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485

--- Comment #2 from Jason Merrill  ---
Created attachment 44167
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44167=edit
proposed fix

https://gcc.gnu.org/ml/gcc-patches/2018-05/msg00968.html

[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2018-05-22 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485

Jason Merrill  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||jason at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |jason at gcc dot gnu.org

[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2018-05-17 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485

Jonathan Wakely  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-05-17
 Ever confirmed|0   |1

[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2018-05-17 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485

Jonathan Wakely  changed:

   What|Removed |Added

 CC||redi at gcc dot gnu.org

--- Comment #1 from Jonathan Wakely  ---
*** Bug 85823 has been marked as a duplicate of this bug. ***