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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
crash28.C
blob
6b0df69f16aac61c1a93d158bc0af84ea6d546c7
1
// Build don't link:
2
// Special g++ 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); // ERROR - no matching function
14
}