repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
template
/
sfinae2.C
blob
89880a85f4345f1583d83ccb783ff80d5a3dbe60
1
// PR c++/19989
2
// Don't instantiate a function template if it would generate an
3
// array of size zero.
4
5
// { dg-do compile }
6
7
template<int T> struct cl {
8
const static int value = T;
9
};
10
11
template<int I> void fn (char (*) [cl<I>::value] = 0 );
12
13
void foo (void)
14
{
15
fn<0> (); // { dg-error "no matching function" }
16
}
17