PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / unify8.C
blob9caf085f6b5e0ccdb996fdbdc62b73bc18ee8ff5
1 // { dg-do link }
3 // Copyright (C) 2005 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 7 Jul 2005 <nathan@codesourcery.com>
6 // Origin:Wolfgang Bangerth <bangerth@dealii.org>
7 // PR 21799: deduction of cvqualifiers on member functions was wrong
9 template <class T> void f (T &,       void (T::*)()      ); 
10 template <class T> void f (const T &, void (T::*)() const) {} 
12 struct X { 
13     void g() const {}
14 }; 
16 const X *x; 
18 int main () { 
19   f (*x, &X::g);