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
* c-common.c (get_priority): Add check for
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
crash28.C
blob
09b5600c62d4a4de69a7ed7be8ae16fefcfd436b
1
// { dg-do assemble }
2
// { dg-options "" }
3
4
template <class ARRY>
5
inline unsigned int asize(ARRY &a)
6
{
7
return sizeof(a) / sizeof(a[0]);
8
}
9
10
void f(unsigned int n) {
11
int x[n];
12
13
asize(x); // { dg-error "" } no matching function
14
}