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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
vla4.C
blob
90e4160679a9cd102efe27aaa567bec9a92952fb
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 "int \\(\\*\\)\\\[i\\\]" }
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
}