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
/
decltype9.C
blob
45cd9ed7da3ed9db2fe7612310dbb5f26d0a5e15
1
// PR c++/34271
2
// { dg-do compile { target c++11 } }
3
4
template<int> struct A { // { dg-message "defined here" }
5
static int i;
6
};
7
8
template<int N> int A<N>::i(decltype (A::i)); // { dg-error "no declaration" }
9
// { dg-message "no functions" "note" { target *-*-* } .-1 }