Skip to content
Snippets Groups Projects
  • Jonathan Wakely's avatar
    d9193096
    libstdc++: Make __cmp_cat::__unseq constructor consteval · d9193096
    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.
    
    (cherry picked from commit 84cff28f)
    d9193096
    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.
    
    (cherry picked from commit 84cff28f)