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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [alias-decl-15.C] - Rev 774

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

// Origin PR c++/51194
// { dg-options "-std=c++0x" }

template<class U, class V> //#1
struct foo {}; // { dg-error "provided for|foo" }

template<class U, class V=char>
struct P {};

template<template<class... U> class... TT>
struct bar {
    template<class... Args>
    using mem = P<TT<Args...>...>;//#2 { dg-error "wrong number of|arguments" }
};

bar<foo>::mem<int, char> b;//#3 { dg-error "invalid type" }

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.