File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- //  RUN: %clang_cc1 -std=c++23 -fsyntax-only %s -verify
2- //  RUN: %clang_cc1 -std=c++23 -fsyntax-only %s -verify -fexperimental-new-constant-interpreter
1+ //  RUN: %clang_cc1 -std=c++23 -fsyntax-only %s -verify -fcxx-exceptions 
2+ //  RUN: %clang_cc1 -std=c++23 -fsyntax-only %s -verify -fexperimental-new-constant-interpreter -fcxx-exceptions 
33
44namespace  GH139818 {
55    struct  A  {
@@ -20,8 +20,8 @@ namespace GH139818{
2020    static_assert (!f1());
2121
2222    struct  Y  {
23-       constexpr  ~Y () noexcept (false ) { throw  " oops"  ; }  //  expected-error  {{cannot use 'throw' with exceptions disabled }}
24-                                                         //  expected-note@-1 {{subexpression not valid in a constant expression}} 
23+       constexpr  ~Y () noexcept (false ) { throw  " oops"  ; }  //  expected-note  {{subexpression not valid in a constant expression }}
24+                                                         
2525      constexpr  operator  bool () {
2626        return  b;
2727      }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments