☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
parse
/
crash37.C
☽
☼
gcc/testsuite/g++.dg/parse/crash37.C
code
plain
raw
1
// PR c++/31941
2
// { dg-do compile }
3
4
struct S
5
{
6
S() throw () { }
7
virtual ~S () throw ();
8
virtual const char* what () const throw ();
9
};
10
11
const char *
12
foo (S &e)
13
{
14
return e.what ().c_str (); // { dg-error "c_str.*S::what.*which is of non-class type" }
15
}