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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
crash89.C
blob
f4cdaf9d9bd5dc47a0e4e279928cfb4223cc646f
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 "declaration" }
9
10
// { dg-prune-output "template argument 2 is invalid" }