r262405 - in /branches/gcc-7-branch/libstdc++-v...

redi@gcc.gnu.org redi@gcc.gnu.org
Wed Jul 4 13:59:00 GMT 2018


Author: redi
Date: Wed Jul  4 13:59:13 2018
New Revision: 262405

URL: https://gcc.gnu.org/viewcvs?rev=262405&root=gcc&view=rev
Log:
PR libstdc++/85098 add missing definitions for static constants

In C++11 and C++14 any odr-use of these constants requires a definition
at namespace-scope.  In C++17 they are implicitly inline and so the
namespace-scope redeclarations are redundant (and allowing them is
deprecated).

Backport from mainline
2018-05-18  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/85098
	* include/bits/regex.h [__cplusplus < 201703L] (basic_regex::icase)
	(basic_regex::nosubs, basic_regex::optimize, basic_regex::collate)
	(basic_regex::ECMAScript, basic_regex::basic, basic_regex::extended)
	(basic_regex::awk, basic_regex::grep, basic_regex::egrep): Add
	definitions.
	* include/bits/regex_automaton.h (_NFA::_M_insert_state): Adjust
	whitespace.
	* testsuite/28_regex/basic_regex/85098.cc: New

Added:
    branches/gcc-7-branch/libstdc++-v3/testsuite/28_regex/basic_regex/85098.cc
Modified:
    branches/gcc-7-branch/libstdc++-v3/ChangeLog
    branches/gcc-7-branch/libstdc++-v3/include/bits/regex.h
    branches/gcc-7-branch/libstdc++-v3/include/bits/regex_automaton.h



More information about the Libstdc++-cvs mailing list