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
Handle arithmetic on eliminated address indices [PR116413]
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
ice23781.d
blob
7adc11607db3f56ab961e415acedda9d252a9387
1
/**
2
TEST_OUTPUT:
3
---
4
fail_compilation/ice23781.d(10): Error: variable `b` cannot be read at compile time
5
---
6
**/
7
struct
Bar
{
int
i
; }
8
ref const
(
Bar
)
func1
(
const return ref
Bar b
) {
return
b
; }
9
immutable
E1
=
Bar
();
10
enum
E2
= &
E1
.
func1
();