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
2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
vla4.C
blob
ecec908074d55f725d33743bf345753e70921d3f
1
// PR c++/29318
2
// { dg-options "" }
3
4
#include <typeinfo>
5
6
void f(int i) {
7
try {
8
int a[i];
9
throw &a; // { dg-error "variable size" }
10
} catch (int (*)[i]) { // { dg-error "variable size" }
11
}
12
}
13
14
int main()
15
{
16
int i = 5;
17
int va[i];
18
const std::type_info& info(typeid(&va)); // { dg-error "variable size" }
19
20
return 0;
21
}