https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87824
--- Comment #23 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Iain Buclaw from comment #22) > (In reply to Uroš Bizjak from comment #20) > > > > I'd like to propose an alternative patch. The testsuite harness should > > simply ask libstdc++ for correct include paths, like in the to be attached > > patch. > > > > (This is how libstdc++ testsuite determines correct include flags.) > > Seems reasonable. > > Filtering out flags not recognized by D would mean there's no need to touch > libstdc++. > > > # For the tests that mix C++ and D, need to know where headers are located. > set odir [lookfor_file ${gccpath} libstdc++-v3] > if { ${odir} != "" } { > set cxxflags [exec sh ${odir}/scripts/testsuite_flags --build-includes] > set idx [lsearch $cxxflags "-nostdinc++"] > append flags [lreplace $cxxflags $idx $idx] > } Yes, this would also work; there are some additional include directories that look specific to libstdc++ testing, but won't hurt here. So, do you want me to officially propose the above patch or do you want to take it from here?