commit 641f48dbc01bb134de1b99414b3ebb4f114d92c0
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Jul 29 14:00:51 2015 +0100
PR libstdc++/66829
* testsuite/lib/libstdc++.exp (v3-build_support): Compile
testsuite_shared.cc with -std=gnu++98.
@@ -668,7 +668,7 @@ proc v3-build_support { } {
# Compile with "-w" so that warnings issued by the compiler
# do not prevent compilation.
if { [v3_target_compile $srcdir/util/$f $object_file "sharedlib" \
- [list "incdir=$srcdir" "additional_flags=-fno-inline -w -shared -fPIC -DPIC"]]
+ [list "incdir=$srcdir" "additional_flags=-fno-inline -w -shared -fPIC -DPIC -std=gnu++98"]]
!= "" } {
error "could not compile $f"
}