aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr67876.C
blob: c33cb8ce010b177d18a03b07df7e1bdfbe689908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/67876 - [6 Regression] ICE when compiling Firefox 38
// Caused by a patch for c/66516 - missing diagnostic on taking
// the address of a builtin function
// { dg-do compile }

template <class T, void (&F)(T*)>
struct S { };

extern void foo (int*);

template <class T, void (&F)(T*)>
void bar (S<T, F>&s) { }

S<int, foo> s;

void foobar (S<int, foo> &s) { bar (s); }