https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554
Jason Merrill changed:
What|Removed |Added
Target Milestone|--- |13.0
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554
--- Comment #7 from CVS Commits ---
The master branch has been updated by Jason Merrill :
https://gcc.gnu.org/g:124a9e08b7a83795bd4d09001955f0eef68ecd00
commit r13-1219-g124a9e08b7a83795bd4d09001955f0eef68ecd00
Author: Jason Merrill
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554
--- Comment #6 from Jason Merrill ---
(In reply to Daniel Krügler from comment #3)
> The example is ill-formed because the condition of 'if constexpr' is more
> restricted than that of normal 'if': It expects "a contextually converted
> constant
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554
Jason Merrill changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554
Marco Trevisan changed:
What|Removed |Added
CC||mail at 3v1n0 dot net
--- Comment #5
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554
Klaus Rudolph changed:
What|Removed |Added
CC||lts-rudolph at gmx dot de
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554
--- Comment #3 from Daniel Krügler ---
(In reply to Melissa from comment #0)
> Clang errors on this case, so it's possible that my code is invalid: Is it
> legal to compare a function pointer against null in a constant-expression?
The example
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554
--- Comment #2 from Melissa ---
Templates that take an optional function pointer as a template parameter. It
lets you have templates that change behavior if a null function pointer is
passed.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment