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
PR c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
vla10.C
blob
b48b17327be84fc9bf72adbcbad2e89d04e69484
1
// PR c++/48446
2
// { dg-options "" }
3
// { dg-require-effective-target alloca }
4
5
template<typename T>
6
struct A
7
{
8
~A ();
9
T *operator-> () const;
10
};
11
12
struct B
13
{
14
typedef A <B> P;
15
static P foo (int);
16
};
17
18
struct C
19
{
20
typedef A<C> P;
21
static const int c = 80;
22
};
23
24
C::P bar ();
25
26
void
27
baz ()
28
{
29
char z[bar ()->c];
30
{
31
B::P m = B::foo (sizeof (z));
32
}
33
}