Silverfrost Forums

Welcome to our forums

Compiler fails to find errors in TYPE (WIN32)

20 Jul 2019 1:54 #24047

I stumbled across this quite by accident as I was adjusting the members of a TYPE.

The following code compiles without error with the data in the TYPE (bad, not expected), but fails if the data is outside of the TYPE (good, expected).

	type:: my_struct
    character*16,pointer::	abcd
    character*16::			defg
    end type

    type (my_struct):: wxyz
    
    character*16,pointer::	abcd
    character*16::		defg
    character*16,target::	my_data

    wxyz%abcd => my_data ! should work
    wxyz%defg => my_data ! should fail error 422 - The left hand side of the pointer assignment does not have the POINTER attribute

    abcd => my_data		! should work
    defg => my_data		! fails with error 422 - The left hand side of the pointer assignment does not have the POINTER attribute
	end
23 Jul 2019 12:28 #24068

Dropped through the cracks, perhaps?

23 Jul 2019 3:38 #24070

Thanks. No, it's just that I have been out of office for a few days.

I have made a note that this needs fixing.

25 Jul 2019 2:48 #24093

This failure has now been fixed for the next release of FTN95.

Please login to reply.