Merge from mainline.
[official-gcc.git] / gcc / testsuite / g++.dg / template / instantiate7.C
blob14a1a33cf2124afc0ddfa40454859d9060c74bfd
1 // PR c++/19498
2 // Origin: Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3 // { dg-do compile }
5 template<typename T> struct A
7     template<T&> struct B;  // { dg-error "reference to void" }
8 };
10 A<void> a;                  // { dg-error "instantiated" }