Subject: bug#54990: Byte compiler bug

From: Mattias Engdegård <[email-masked]>
Date: Mon, 2 May 2022 15:45:25 +0200

21 apr. 2022 kl. 11.49 skrev Alan Mackenzie <[email-masked]>:

> This is now clear.  byte-compile is compiling a form, not source code,
> so unless the form was read with symbol positions, it won't have them.
> In byte-compile-file, symbol positions are stripped as the byte code
> gets output to the file.elc.  So the symbol positions were not in the
> ..elc.
> 
> Only in compile-defun were there positions, and they "survived".

Thank you for dealing with this. My next question would be why the bug only affected switch hash table keys and no other constants. Do you know?

And why did you decide to strip the keys at that point (lowering from LAP), and not where other constants are stripped?

I see that you have committed more corrections since; were these related?