Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp0x/noexcept59.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
145:1830386684a0 | 152:2b5abeee2509 |
---|---|
1 // PR c++/90748 | |
2 // { dg-do compile { target c++11 } } | |
3 | |
4 template <class ...Ts> class A | |
5 { | |
6 void e (); | |
7 bool f (int() noexcept(this->e())); // { dg-error "this" } | |
8 bool g (int() noexcept(e())); // { dg-error "without object" } | |
9 }; | |
10 A<> b; |