1// { dg-do assemble }
2
3// by Paul Burchard <burchard@pobox.com>, Level Set Systems, Inc.
4// Copyright (C) 1999 Free Software Foundation
5
6struct Q {
7	template<class>
8	class X {
9	};
10};
11template<template<class> class>
12class Y {
13};
14Y<typename Q::X> y; // { dg-error "" } typename out of template context
15
16