1 // Copyright (C) 2005 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 13 Jun 2005 <nathan@codesourcery.com>
3 
4 // Origin:  Volker Reichelt <reichelt@gcc.gnu.org>
5 // Bug 21929: ICE on invalid
6 
7 template<int> struct A
8 {
9     struct B;
10 };
11 
12 template<> struct A<void>::B {}; // { dg-error "mismatch|expected|name a type|extra" }
13