<commit_before>// function pointer dependent type

// ERR-MATCH: found dependent type `[(]dependent[)]' in non-template

// // ERR-MATCH: (0a257264-c6ec-4983-95d0-fcd6aa48a6ce|ee42ebc5-7154-4ace-be35-c2090a2821c5)

// error: a.ii:11:3: internal error: found dependent type `(dependent)' in
// non-template (0a257264-c6ec-4983-95d0-fcd6aa48a6ce)

template <typename T>
struct S {
  void bar(void (*pf)(S<T>&)) {}
};

template<typename T>
void foo(S<T>& s) {}

int main() {
  S<char> s;
  s.bar(foo);
}
<commit_msg>comment<commit_after>// function pointer dependent type

// ERR-MATCH: found dependent type `[(]dependent[)]' in non-template

// // ERR-MATCH: (0a257264-c6ec-4983-95d0-fcd6aa48a6ce|ee42ebc5-7154-4ace-be35-c2090a2821c5)

// error: a.ii:11:3: internal error: found dependent type `(dependent)' in
// non-template (0a257264-c6ec-4983-95d0-fcd6aa48a6ce)

// NOTE: "cout << endl" hits this bug.

template <typename T>
struct S {
  void bar(void (*pf)(S<T>&)) {}
};

template<typename T>
void foo(S<T>& s) {}

int main() {
  S<char> s;
  s.bar(foo);
}

{'fraction_non_alphanumeric': 0.1830188679245283, 'fraction_numerical': 0.11320754716981132, 'mean_word_length': 4.175609756097561, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4392182', 'n_tokens_mistral': 505, 'n_tokens_neox': 454, 'n_words': 92}