summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/instantiate7.C
blob: 2e54106ffdd2e923197b3edc4c7a26b0a1b588df (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/19498
// Origin: Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
// { dg-do compile }

template<typename T> struct A
{
    template<T&> struct B;  // { dg-error "reference to void" }
};

A<void> a;                  // { dg-message "instantiated" }