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++.jason/] [overload2.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// Bug: foo and bar are considered to be overloaded (i.e. their
// IDENTIFIER_GLOBAL_VALUES are TREE_LISTs) even though they aren't,
// so ?: thinks it can't resolve the names.
void foo ();
void bar ();
void baz ()
{
void (*p)() = 1 ? foo : bar; // { dg-bogus "" } wrongful overloading
}
Go to most recent revision | Compare with Previous | Blame | View Log