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
2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
crash89.C
blob
d5c3a928323dd4d215f68600bc0f0ab7902fb52c
1
// PR c++/34397
2
3
template<typename T, int = T()[0]> struct A // { dg-error "subscripted" }
4
{
5
typedef A<T> B;
6
};
7
8
A<int> a; // { dg-error "template argument 2 is invalid" }