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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [deduct2.C] - Rev 154

Compare with Previous | Blame | View Log

// { dg-do assemble  }
// 
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 5 Sept 2000 <nathan@codesourcery.com>

// bug 79 & 59. We failed to tsubst non-type template parms which used
// (previously deduced) type parms.

struct C {};  

template< class T, T *G > struct S {};
template< class T, T *G > void boz ( S<T,G> s1);

C c1Gen;

void foo ()
{
  S< C, &c1Gen > s1;

  boz (s1);
}

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.