Skip to content

Commit 392feb4

Browse files
committed
Add test case for DIM BYREF bug #842 (fixed by 3cc22e2)
1 parent 1d5ecbe commit 392feb4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Version 1.06.0
6161
- Fixed inline asm procedure name mangling bug (missing underscore prefix) with -gen gcc -asm intel on dos/win32
6262
- #878: Fix fbc-64bit hangs on 'Case True' + 'Case False' inside 'Select Case As const'
6363
- Fix SELECT CASE AS CONST to allow both signed & unsigned case range values
64-
- #822, #814: Compiler crash when initializing shared reference (DIM SHARED BYREF) with non-constant initializer (e.g. another reference, or dynamic array element)
64+
- #822, #814, #842: Compiler crash when initializing static/shared reference (DIM SHARED/STATIC BYREF) with non-constant initializer (e.g. another reference, or dynamic array element)
6565

6666

6767
Version 1.05.0
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
' TEST_MODE : COMPILE_ONLY_FAIL
2+
3+
Type UDT
4+
Dim As Integer I = 123
5+
End Type
6+
7+
Static As UDT u
8+
9+
Static Byref As Integer RI = u.I
10+
Print RI

0 commit comments

Comments
 (0)