PR libstdc++/83598 don't modify flags passed to std::basic_regex constructors
commit8afe2df012564c108406069fea473c02463db6fb
authorJonathan Wakely <jwakely@redhat.com>
Wed, 27 Dec 2017 22:18:02 +0000 (27 22:18 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 27 Dec 2017 22:18:02 +0000 (27 22:18 +0000)
tree6e7a0a9f6426ac0e8a39422fe0c8003c9eaac1a0
parentc41743d0c0d498bd55c91285d5324b02bed7fb54
PR libstdc++/83598 don't modify flags passed to std::basic_regex constructors

PR libstdc++/83598
* include/bits/regex.h (basic_regex): Don't modify flags passed to
constructors.
* testsuite/28_regex/basic_regex/ctors/83598.cc: New test.

From-SVN: r256013
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex.h
libstdc++-v3/testsuite/28_regex/basic_regex/ctors/83598.cc [new file with mode: 0644]