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] - Rev 149

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

powered by: WebSVN 2.1.0

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