-
- Downloads
libstdc++: Do not use std::vector<bool>::reference default ctor [PR115098]
This default constructor was made private by r15-3124-gb25b101bc38000 so the pretty printer tests need a fix to stop using it. There's no conforming way to get a default-constructed 'reference' now, e.g. trying to access an element of a default-constructed std::vector<bool> will trigger an assertion. Remove the tests, but leave a comment in the printer code about handling it. libstdc++-v3/ChangeLog: PR libstdc++/115098 * python/libstdcxx/v6/printers.py (StdBitReferencePrinter): Add comment. * testsuite/libstdc++-prettyprinters/simple.cc: Do not default construct std::vector<bool>::reference. * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
Showing
- libstdc++-v3/python/libstdcxx/v6/printers.py 3 additions, 0 deletionslibstdc++-v3/python/libstdcxx/v6/printers.py
- libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc 0 additions, 3 deletionslibstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc
- libstdc++-v3/testsuite/libstdc++-prettyprinters/simple11.cc 0 additions, 3 deletionslibstdc++-v3/testsuite/libstdc++-prettyprinters/simple11.cc
Loading
Please register or sign in to comment