URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [parse/] [crash37.C] - Rev 301
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/31941
// { dg-do compile }
struct S
{
S() throw () { }
virtual ~S () throw ();
virtual const char* what () const throw ();
};
const char *
foo (S &e)
{
return e.what ().c_str (); // { dg-error "c_str.*S::what.*which is of non-class type" }
}
Go to most recent revision | Compare with Previous | Blame | View Log