OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [ttp12.C] - Rev 749

Go to most recent revision | Compare with Previous | Blame | View Log

// 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" }

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.