------- Comment #28 from gcc at magfr dot user dot lysator dot liu dot se 2007-11-03 07:47 ------- That both files are named S1.C doesn't matter.
If one do cp S1.C S2.C g++ -c S1.C g++ -c S2.C g++ S1.o S2.o one get the same behaviour and the same linker error. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33871