diff mbox

libstdc++/61329 Add missing 'inline' in regex debug functions

Message ID 20140527111415.GZ6953@redhat.com
State New
Headers show

Commit Message

Jonathan Wakely May 27, 2014, 11:14 a.m. UTC
Tested x86_64-linux, committed to trunk, will commit to 4.9 later
today.
diff mbox

Patch

commit 9ea4330e4e3a7fe431206048f2e1efe5e9c28eaa
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue May 27 11:48:50 2014 +0100

    	PR libstdc++/61329
    	* include/bits/regex_automaton.tcc (_State_base::_M_print): Add
    	inline specifier.
    	(_State_base::_M_dot): Likewise.

diff --git a/libstdc++-v3/include/bits/regex_automaton.tcc b/libstdc++-v3/include/bits/regex_automaton.tcc
index e0ac3f9..1c6cfdd 100644
--- a/libstdc++-v3/include/bits/regex_automaton.tcc
+++ b/libstdc++-v3/include/bits/regex_automaton.tcc
@@ -35,7 +35,7 @@  namespace __detail
 _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
 #ifdef _GLIBCXX_DEBUG
-  std::ostream&
+  inline std::ostream&
   _State_base::_M_print(std::ostream& ostr) const
   {
     switch (_M_opcode)
@@ -67,7 +67,7 @@  _GLIBCXX_BEGIN_NAMESPACE_VERSION
   }
 
   // Prints graphviz dot commands for state.
-  std::ostream&
+  inline std::ostream&
   _State_base::_M_dot(std::ostream& __ostr, _StateIdT __id) const
   {
     switch (_M_opcode)