URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Copyright (C) 2002 Free Software Foundation, Inc.
|
// Copyright (C) 2002 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 24 Dec 2002
|
// Contributed by Nathan Sidwell 24 Dec 2002
|
// Source Martin Buchholz martin@xemacs.org
|
// Source Martin Buchholz martin@xemacs.org
|
|
|
// PR 9053. Failed to consider templates that are disambiguated by
|
// PR 9053. Failed to consider templates that are disambiguated by
|
// return type.
|
// return type.
|
|
|
template class bar;
|
template class bar;
|
template <> struct bar { typedef void type; };
|
template <> struct bar { typedef void type; };
|
template class qux;
|
template class qux;
|
template <> struct qux { typedef void type; };
|
template <> struct qux { typedef void type; };
|
|
|
template
|
template
|
typename bar::type foo (T t) { }
|
typename bar::type foo (T t) { }
|
|
|
template
|
template
|
typename qux::type foo (T t) { }
|
typename qux::type foo (T t) { }
|
|
|
|
|
int
|
int
|
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
{
|
{
|
foo ("foo");
|
foo ("foo");
|
foo (7);
|
foo (7);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.