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
MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail311.d
blob
eaacfabf6a6c80f67726ed4594be0954507c36c4
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail311.d(16): Error: undefined identifier `undefined`
5
fail_compilation/fail311.d(25): Error: template instance `fail311.foo!()` error instantiating
6
---
7
*/
8
9
template
Tuple
(
T
...)
10
{
11
alias
T Tuple
;
12
}
13
14
void
foo
()()
15
{
16
undefined x
;
17
foreach
(
i
;
Tuple
!(
2
))
18
{
19
static assert
(
true
);
20
}
21
}
22
23
void
main
()
24
{
25
foo
!()();
26
}