https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106020

--- Comment #6 from Matt Godbolt <matt at godbolt dot org> ---
I'm afraid to say I've been unable to make a repro case in the short time I had
to try - will get back to this but about to go on vacation (!). That's to say
dumping the files from CE and using:

CXX=/opt/compiler-explorer/gcc-12.1.0/bin/g++
CXXFLAGS=-O3 -flto -fno-fat-lto-objects -fPIC
app: main.o date.o
        $(CXX) $(CXXFLAGS) -o app date.o main.o
main.o:
        $(CXX) $(CXXFLAGS) -o main.o -c main.cpp
date.o:
        $(CXX) $(CXXFLAGS) -o date.o -c date.cpp
clean:
        rm -f app main.o date.o

did _not_ cause the problem, so there's something else going on. Again, will
try and get to this later, but apologies for the "hit and run" bug report :(

Reply via email to