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/] [parse/] [crash37.C] - Rev 301
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" }
}