URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [overload/] [template4.C] - Rev 320
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/35986
// { dg-do compile }
namespace
{
template <int> void foo (...); // { dg-message "foo" }
template <int> void bar (int, ...); // { dg-message "bar" }
void baz (...); // { dg-message "baz" }
}
template <int> void foo (...); // { dg-message "candidate" }
template <int> void bar (int, ...); // { dg-message "candidate" }
void baz (...); // { dg-message "candidate" }
void
test ()
{
foo <0> (0); // { dg-error "is ambiguous" }
bar <1> (0, 1); // { dg-error "is ambiguous" }
baz (0); // { dg-error "is ambiguous" }
}
Go to most recent revision | Compare with Previous | Blame | View Log