gcc/testsuite/g++.old-deja/g++.pt/memtemp89.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // by Paul Burchard <[email protected]>, Level Set Systems, Inc. |
| 4 | // Copyright (C) 1999, 2000 Free Software Foundation |
| 5 | |
| 6 | class Q { |
| 7 | template<class T> |
| 8 | class X { // { dg-message "" } Q::X private |
| 9 | }; |
| 10 | }; |
| 11 | template<template<class> class XX> |
| 12 | class Y { |
| 13 | XX<int> x_; |
| 14 | }; |
| 15 | Y<Q::X> y; // { dg-error "" } required from here |