repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-70204a.C
blob
5ac551927e1d1fa546381ba2dc0b2cc4e62cce5c
1
// PR c++/70204
2
// { dg-do compile { target c++11 } }
3
4
int a;
5
6
template < int N, int I >
7
void fn1 ()
8
{
9
const int x = I * a, y = x;
10
fn1 < y, I > (); // { dg-error "constant|no match" }
11
}
12
13
int
14
main ()
15
{
16
fn1 < 0, 0 > ();
17
return 0;
18
}