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++: ICE with NSDMIs and fn arguments [PR116015]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
pr65241.c
blob
75e11a26dcc612e8658e8f051a29e7f3922171ed
1
/* { dg-additional-options "-fpermissive" } */
2
3
enum
E
{
A
,
B
,
C
,
D
};
4
void
fn4
(
void
);
5
6
int
7
fn1
(
enum
E p1
)
8
{
9
static int
w
[
D
];
10
if
(
w
[
p1
])
11
switch
(
p1
)
12
case
C
:
13
w
[
p1
] =
0
;
14
}
15
16
void
17
fn2
(
p1
)
18
{
19
fn1
(
p1
);
20
}
21
22
void
23
fn3
(
enum
E p1
)
24
{
25
fn2
(
p1
);
26
fn4
();
27
fn2
(
p1
);
28
}