Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp2a/nontype-class17.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 1 // { dg-do compile { target c++2a } } |
2 | |
3 template<auto> | |
4 struct S { }; | |
5 | |
6 struct R { }; | |
7 | |
8 void | |
9 g (void) | |
10 { | |
11 S<R()> s; // { dg-error "mismatch" } | |
12 // { dg-message "treated as function" "note" { target *-*-* } .-1 } | |
13 S<R{}> s2; | |
14 S<int()> s3; // { dg-error "mismatch" } | |
15 // { dg-message "treated as function" "note" { target *-*-* } .-1 } | |
16 S<int{}> s4; | |
17 } |