URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [parse/] [crash37.C] - Rev 841
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