gcc/testsuite/g++.old-deja/g++.pt/memtemp86.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // by Paul Burchard <[email protected]>, Level Set Systems, Inc. |
| 4 | // Copyright (C) 1999 Free Software Foundation |
| 5 | |
| 6 | struct Q { |
| 7 | template<class> |
| 8 | class X { |
| 9 | }; |
| 10 | }; |
| 11 | template<template<class> class> |
| 12 | class Y { |
| 13 | }; |
| 14 | Y<typename Q::X> y; // { dg-error "" } typename out of template context |
| 15 |