bug#16060: Attempt to mutate a literal pair results in segfault (master)

2023-07-19 Thread Jean Abou Samra
This is still happening with Guile 3.0, but only at -O2, not at -O1. $ cat x.scm (set-car! '(1 . 2) 3) $ guild3.0 compile -O1 x.scm wrote `/home/jean/.cache/guile/ccache/3.0-LE-8-4.5/home/jean/tmp/x.scm.go' $ guile3.0 x.scm Backtrace: In ice-9/boot-9.scm: 1752:10 6 (with-exception-handler

bug#16060: Attempt to mutate a literal pair results in segfault (master)

2013-12-05 Thread Mark H Weaver
Hi, Pieter Slabbert writes: > When I try to load a file which contains > (set-car! '(0 . ()) 1) > > Guile segfaults . > if I enter the same thing into the interpreter it works fine. According to the R5RS, it is "an error" to mutate literals, and implementations are not required to detect this e