PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / diagnostic / method1.C
blob0e7c580924a142e04cec7cc963cc1fbb03187d35
1 // PR c++/44627
2 // { dg-do compile }
4 struct A
6   A *foo ();
7 };
9 template <class T>
10 void
11 bar ()
13   A::foo ().anything;   // { dg-error "without object" }
16 void
17 baz ()
19   bar <int> ();