PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / instantiate3.C
blobe99ec84c2ac98c654881a39f707e560e37273654
1 // { dg-do compile }
2 // Origin: Scott Snyder <snyder@fnal.gov>
4 // PR c++/7639
5 // ICE when accessing member with incomplete type.
7 class ACE_Null_Mutex;   // { dg-message "forward declaration" }
9 template <class TYPE>
10 struct ACE_Cleanup_Adapter
12   TYPE &object ()
13   { return object_; }
14   TYPE object_;         // { dg-error "incomplete type" }
17 template class ACE_Cleanup_Adapter<ACE_Null_Mutex>; // { dg-message "required from here" }