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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [typename27.C] - Rev 853

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

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

// bugs 173, 174 & 406 all ICE'd due to Koenig lookup involving
// typename T::t.

struct A
{
  typedef int type;
};

template<typename T> void same_key (T, typename T::type);

template <class T> void foo (T *, void (*) (T, int));

void baz (A *ptr)
{
  foo (ptr, same_key);
}

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.