https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123937
--- Comment #7 from Gaius Mulley <gaius at gcc dot gnu.org> --- Hi Bill, here are my build commands and test below. All works with the test code you posted. Hope this is of some use, for tracking the problem down: $ mkdir GCC $ cd GCC/ $ git clone https://gcc.gnu.org/git/gcc.git gcc-15 $ cd gcc-15/ $ git branch -a $ git checkout releases/gcc-15 $ ./contrib/download_prerequisites $ mkdir build $ cd build/ $ ../configure --enable-languages=m2 --prefix=$HOME/opt/gcc15 --disable-bootstrap CFLAGS=-g CXXFLAGS=-g --disable-multilib $ make -j 4 && make install $ cd GCC/badimport/ $ export PATH=$HOME/opt/gcc15/bin:$PATH ~/GCC/badimport$ gm2 m1.mod ~/GCC/badimport$ echo $? 0 ~/GCC/badimport$ gm2 --version gm2 (GCC) 15.2.1 20260219 Copyright (C) 2025 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
