1 // Copyright (C) 2004 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 15 Oct 2004 <nathan@codesourcery.com>
4 // We forgot to ignore current context and friends when determing
5 // which exceptions shadowed eachother.
16 virtual void V () throw (B); // { dg-error "overriding" "" { target { ! c++17 } } }
17 }; // { dg-error "dynamic exception specification" "" { target c++17 } .-1 }
18 // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-2 }
21 virtual void V () throw (D); // { dg-error "looser throw" "" { target { ! c++17 } } }
22 }; // { dg-error "dynamic exception specification" "" { target c++17 } .-1 }
23 // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-2 }