summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/arg7.C
blob: a9333b26a2162fd08856e026831d31e7db279407 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/27425, 34274

template<typename T> struct A
{
  template<template<T> class> struct B {}; // { dg-error "void|mismatch|expected" }
  // { dg-bogus "not supported" "" { target *-*-* } 5 }
  template<T> struct C;			   // { dg-error "void" }
  B<C> b;
};

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