Commit 9f05d96
committed
Add backtrace of error statements
That change gives backtrace of errors that should simplify
deducing what the error is all about.
The following code:
```cpp
f: () = {
l1 := :() -> int = {
i := 42;;
return i;
};
}
```
Generates error:
```
bug_352_error_message_semicolon.cpp2...
bug_352_error_message_semicolon.cpp2(3,13): error: empty statement is not allowed - remove extra semicolon (at ';')
bug_352_error_message_semicolon.cpp2(3,13): error: bad statement! (at ';')
bug_352_error_message_semicolon.cpp2(2,6): error: bad statement! (at ':')
```1 parent d41fc77 commit 9f05d96
File tree
2 files changed
+3
-0
lines changed- regression-tests/test-results
- source
2 files changed
+3
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4507 | 4507 | | |
4508 | 4508 | | |
4509 | 4509 | | |
| 4510 | + | |
4510 | 4511 | | |
4511 | 4512 | | |
4512 | 4513 | | |
| |||
0 commit comments