-V and -b options cause *-gcc-* driver to be run no matter what driver is used. So, e.g. g++ -V 4.0.0 -o a a.C will not link, as -lstdc++ is not passed.
I think either we should completely nuke -V and -b options, or install also <machine>-{gfortran,gcj,g++,cpp}-<version> links and put into *spec.c a string with the canonical name of the driver and use that string in gcc.c instead of "-gcc-". -- Summary: g++ -V ver (or -b mach) or gcj -V ver etc. broken Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jakub at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19504