Skip to content
Snippets Groups Projects
  • Jonathan Wakely's avatar
    84cff28f
    libstdc++: Make __cmp_cat::__unseq constructor consteval · 84cff28f
    Jonathan Wakely authored
    This constructor should only ever be used with a literal 0 as the
    argument, so we can make it consteval. This has the nice advantage that
    it is expanded immediately in the front end, and so GDB will never step
    into the __cmp_cat::__unseq::__unseq(__unseq*) constructor that is
    uninteresting and probably confusing to users.
    
    libstdc++-v3/ChangeLog:
    
    	* libsupc++/compare (__cmp_cat::__unseq): Make ctor consteval.
    	* testsuite/18_support/comparisons/categories/zero_neg.cc: Prune
    	excess errors caused by invalid consteval calls.
    84cff28f
    History
    libstdc++: Make __cmp_cat::__unseq constructor consteval
    Jonathan Wakely authored
    This constructor should only ever be used with a literal 0 as the
    argument, so we can make it consteval. This has the nice advantage that
    it is expanded immediately in the front end, and so GDB will never step
    into the __cmp_cat::__unseq::__unseq(__unseq*) constructor that is
    uninteresting and probably confusing to users.
    
    libstdc++-v3/ChangeLog:
    
    	* libsupc++/compare (__cmp_cat::__unseq): Make ctor consteval.
    	* testsuite/18_support/comparisons/categories/zero_neg.cc: Prune
    	excess errors caused by invalid consteval calls.