On Fri, 31 Jan 2025 at 18:56, Ian Lance Taylor via Gcc <gcc@gcc.gnu.org> wrote: > > On Fri, Jan 31, 2025 at 7:37 AM The Cuthour via Gcc <gcc@gcc.gnu.org> wrote: > > > > I understand the concerns about the C++ standard requiring constant > > expressions to be known during compilation. However, my proposal for > > link-time evaluation offers significant flexibility and efficiency > > improvements that could address current limitations in compile-time > > constant expressions. > > From what you are saying, you are looking for a C++ interpreter. That > is not what GCC is. GCC is a C++ compiler. > > There have been C++ interpreters in the past, such as one by Saber.
There's one in ROOT from CERN: https://root.cern/primer/#learn-c-at-the-root-prompt