comparison gcc/testsuite/g++.dg/debug/pr71432.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
103 typedef typename _Alloc_traits::size_type size_type; 103 typedef typename _Alloc_traits::size_type size_type;
104 104
105 public: 105 public:
106 size_type size ()const noexcept 106 size_type size ()const noexcept
107 { 107 {
108 return 0;
108 } 109 }
109 const _CharT *data () const noexcept 110 const _CharT *data () const noexcept
110 { 111 {
112 return 0;
111 } 113 }
112 }; 114 };
113 } 115 }
114 116
115 template < typename _CharT > inline typename __gnu_cxx::__enable_if < 117 template < typename _CharT > inline typename __gnu_cxx::__enable_if <
125 127
126 class CLIParameterType 128 class CLIParameterType
127 { 129 {
128 const std::string & getSwitchOption (unsigned int i) const 130 const std::string & getSwitchOption (unsigned int i) const
129 { 131 {
130 } unsigned int getSwitchOptionCount () const 132 static std::string a;
133 return a;
134 }
135 unsigned int getSwitchOptionCount () const
131 { 136 {
132 } int checkSwitched (const std::string & value) const; 137 return 0;
138 }
139 int checkSwitched (const std::string & value) const;
133 }; 140 };
134 141
135 int 142 int
136 CLIParameterType::checkSwitched (const std::string & value) const 143 CLIParameterType::checkSwitched (const std::string & value) const
137 { 144 {
138 int contains = false; 145 int contains = false;
139 for (unsigned int i = 0; !contains && i < getSwitchOptionCount () ;) 146 for (unsigned int i = 0; !contains && i < getSwitchOptionCount () ;)
140 contains = getSwitchOption (i) == value; 147 contains = getSwitchOption (i) == value;
148
149 return 0;
141 } 150 }