Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/ttp12.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// Copyright (C) 2004 Free Software Foundation // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> // { dg-do compile } // Check the type of non-type parameter in template template parameter // only if it is dependent. template <template <int* p> class T> struct X {}; template <typename U, template <U* p> class T> struct Y { X<T> x; }; template <int* p> struct Z {}; Y<int, Z> y1; Y<char, Z> y2; // { dg-error "mismatch|expected|invalid" }