Debian Codegraph @

gcc/testsuite/g++.dg/modules/pr99283-3_a.H

raw
1 // PR 99283 part 2 ICE on definition with qualified-name
2 // { dg-additional-options -fmodule-header }
3 // { dg-module-cmi {} }
4
5 template<bool, typename _Tp>
6 struct enable_if;
7
8 template<typename _Tp>
9 struct enable_if<true, _Tp>
10 { typedef _Tp type; };
11
12 template<typename _CharT>
13 class basic_string;
14
15 typedef basic_string<char> string;
16
17 template<typename _CharT>
18 class basic_string
19 {
20 private:
21 template<typename _Tp>
22 using _If_sv = typename enable_if<true, int>::type;
23
24 public:
25 const _CharT *c_str() const noexcept;
26 };
27
28 inline void stoi(const string& __str)
29 {
30 __str.c_str ();
31 }