Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/noexcept29.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-do compile { target c++11 } } |
2 // { dg-additional-options "-fno-exceptions" } | |
3 | |
4 // PR68475 we used to not check eh spec matching with -fno-exceptions, | |
5 // but this could lead to ICEs. | |
6 | |
7 template <typename> struct traits; | |
8 | |
9 template <typename T> struct X | |
10 { | |
11 void Foo () noexcept (traits <T>::foo ()); // { dg-message "previous declaration" } | |
12 }; | |
13 | |
14 template <typename T> | |
15 void | |
16 X<T>::Foo () noexcept (traits <T>::bar ()) // { dg-error "different exception specifier" } | |
17 { | |
18 } | |
19 |