[Bug c++/15142] New: Internal compiler error when passing a string where a char* is expecteted in a throw statement
micis at gmx dot de
gcc-bugzilla@gcc.gnu.org
Mon Apr 26 10:02:00 GMT 2004
when compiling this small (and silly) program I get an internal compiler error:
bug34.cpp: In function `void SillyFunc()':
bug34.cpp:12: warning: cannot pass objects of non-POD type `struct std::string'
through `...'; call will abort at runtime
bug34.cpp:12: internal compiler error: in cp_expr_size, at cp/cp-lang.c:347
Please submit a full bug report,
#include <string>
class Err
{
public: Err(char *aErrText,...) {}
};
void SillyFunc()
{
std::string fullname;
throw Err("failed %s",fullname);
}
--
Summary: Internal compiler error when passing a string where a
char* is expecteted in a throw statement
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: micis at gmx dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-unknown-linux-gnu
GCC host triplet: powerpc-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15142
More information about the Gcc-bugs
mailing list