Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/error59.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
rev | line source |
---|---|
152 | 1 template<int N> struct S { }; |
2 | |
3 template<template<typename> class TT> | |
4 void foo(); | |
5 | |
6 void bar() | |
7 { | |
8 foo<S>(); // { dg-error "no matching function" } | |
9 // { dg-error "type/value mismatch at argument 1" "" { target *-*-* } .-1 } | |
10 // { dg-message "expected a template of type .template<class> class TT., got .template<int N> struct S." "" { target *-*-* } .-2 } | |
11 } |