public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/c++-contracts] c++: violation handler helper is not constexpr
@ 2021-07-06 20:44 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2021-07-06 20:44 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:e7d3169ccd386e49bf7d4669e9abcf1f90278865

commit e7d3169ccd386e49bf7d4669e9abcf1f90278865
Author: Jason Merrill <jason@redhat.com>
Date:   Fri Jul 2 15:30:03 2021 -0400

    c++: violation handler helper is not constexpr
    
    I can't think of a reason why these should be marked constexpr.
    
    gcc/cp/ChangeLog:
    
            * except.c (init_exception_processing): Don't set
            DECL_DECLARED_CONSTEXPR_P on violation handler.

Diff:
---
 gcc/cp/except.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gcc/cp/except.c b/gcc/cp/except.c
index 97e0735010a..b11cab7644f 100644
--- a/gcc/cp/except.c
+++ b/gcc/cp/except.c
@@ -76,9 +76,6 @@ init_exception_processing (void)
     build_cp_library_fn_ptr ("__on_contract_violation", tmp,
 			     ECF_COLD | ECF_NORETURN);
 
-  DECL_DECLARED_CONSTEXPR_P (on_contract_violation_never_fn) = true;
-  DECL_DECLARED_CONSTEXPR_P (on_contract_violation_fn) = true;
-
   /* void __cxa_call_unexpected(void *); */
   tmp = build_function_type_list (void_type_node, ptr_type_node, NULL_TREE);
   call_unexpected_fn


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-06 20:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-06 20:44 [gcc/devel/c++-contracts] c++: violation handler helper is not constexpr Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).