comparison gcc/testsuite/g++.dg/cpp0x/noexcept30.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
3 // { dg-options "-fdelete-null-pointer-checks" } 3 // { dg-options "-fdelete-null-pointer-checks" }
4 4
5 template<typename A> 5 template<typename A>
6 struct F { 6 struct F {
7 template<typename B> 7 template<typename B>
8 void f() noexcept(&F::template f<B>) {} // { dg-error "exception specification" } 8 void f() noexcept(&F::template f<B>) {} // { dg-error "exception specification|convert" }
9 }; 9 };
10 10
11 int main () { 11 int main () {
12 F<void>().f<int>(); 12 F<void>().f<int>();
13 } 13 }