Pelles C forum

Pelles C => Bug reports => Topic started by: Vortex on July 02, 2023, 12:00:13 PM

Title: Symbol with a leading dot
Post by: Vortex on July 02, 2023, 12:00:13 PM
Hi Pelle,

Poasm does not approve the symbol .var beginning with a dot :

Code: [Select]
.386
.model flat,stdcall
option casemap:none

ExitProcess PROTO :DWORD

.code

start:

    call    main       
    invoke  ExitProcess,0

main PROC

LOCAL .var:DWORD

    lea     eax,.var

    ret

main ENDP

END start

Code: [Select]
poasm.exe /AIA32 Test.asm
Code: [Select]
Test.asm(18): error: Symbol '' is undefined.
Test.asm(16): warning: Symbol '.var' is never used.

Tested with Poasm Version 12.00.1
Title: Re: Symbol with a leading dot
Post by: Pelle on September 10, 2023, 07:17:57 PM
This is an known problem, with no good solution.

Without going into too much detail, the basic problem is allowing:
some-directive ../silly/path/filename.ext
rather than:
some-directive "../silly/path/filename.ext"

Accepting the first form (for MASM and backwards compatibility) is starting the problems, and from there it all goes downhill...