gcc/testsuite/gdc.test/fail_compilation/ice11922.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/ice11922.d(11): Error: undefined identifier `a` |
| 5 | fail_compilation/ice11922.d(17): Error: template instance `ice11922.S.f!int` error instantiating |
| 6 | --- |
| 7 | */ |
| 8 | |
| 9 | struct S |
| 10 | { |
| 11 | auto f(B)(B) { return a; } |
| 12 | } |
| 13 | |
| 14 | void main() |
| 15 | { |
| 16 | S s; |
| 17 | s.f(5); |
| 18 | } |