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