gcc/testsuite/gdc.test/fail_compilation/ice15788.d
raw| 1 | /* |
| 2 | EXTRA_FILES: imports/range15788.d |
| 3 | TEST_OUTPUT: |
| 4 | --- |
| 5 | fail_compilation/ice15788.d(20): Error: none of the overloads of `iota` are callable using argument types `!()(S, S)` |
| 6 | fail_compilation/imports/range15788.d(3): Candidates are: `iota(B, E, S)(B, E, S)` |
| 7 | fail_compilation/ice15788.d(13): `ice15788.iota()` |
| 8 | --- |
| 9 | */ |
| 10 | |
| 11 | import imports.range15788 : iota; |
| 12 | |
| 13 | void iota() {} |
| 14 | |
| 15 | struct S {} |
| 16 | |
| 17 | void main() |
| 18 | { |
| 19 | S s; |
| 20 | iota(s, s); |
| 21 | } |