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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc4/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [explicit73.C] - Rev 305

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

// { dg-do assemble  }

// by Alexandre Oliva <oliva@dcc.unicamp.br>

// According to [temp.expl.spec]/2, a template explicit specialization
// must be declared in the namespace that contains the declaration of
// the template

namespace N {
  template <class T> class foo; // { dg-error "" } referenced below
}

using namespace N;

template <> class foo<void>; // { dg-error "" } invalid specialization

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.