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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
nontype-auto6.C
blob
b40438ce197a4fc20cc1adc10766f0d82c1b2f0a
1
// { dg-do compile { target c++11 } }
2
3
template <int N> struct A;
4
template <typename T, T N> int foo(A<N> *) = delete;
5
void foo(void *);
6
void bar(A<0> *p) {
7
foo(p); // { dg-error "" "" { target c++17 } }
8
}