OpenCores
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] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.