public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15142] New: Internal compiler error when passing a string where a char* is expecteted in a throw statement
@ 2004-04-26 10:02 micis at gmx dot de
2004-04-26 10:49 ` [Bug c++/15142] " micis at gmx dot de
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: micis at gmx dot de @ 2004-04-26 10:02 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/15142] Internal compiler error when passing a string where a char* is expecteted in a throw statement
2004-04-26 10:02 [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
@ 2004-04-26 10:49 ` micis at gmx dot de
2004-04-26 11:34 ` [Bug c++/15142] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: micis at gmx dot de @ 2004-04-26 10:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From micis at gmx dot de 2004-04-26 08:46 -------
Created an attachment (id=6164)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6164&action=view)
preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15142
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/15142] [3.4/3.5 Regression] Internal compiler error when passing a string where a char* is expecteted in a throw statement
2004-04-26 10:02 [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
2004-04-26 10:49 ` [Bug c++/15142] " micis at gmx dot de
@ 2004-04-26 11:34 ` pinskia at gcc dot gnu dot org
2004-04-26 15:00 ` bangerth at dealii dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-26 11:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-26 11:24 -------
Confirmed but not yet reduced.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Known to fail| |3.4.0 3.5.0
Known to work| |3.3.3
Summary|Internal compiler error when|[3.4/3.5 Regression]
|passing a string where a |Internal compiler error when
|char* is expecteted in a |passing a string where a
|throw statement |char* is expecteted in a
| |throw statement
Target Milestone|--- |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15142
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/15142] [3.4/3.5 Regression] Internal compiler error when passing a string where a char* is expecteted in a throw statement
2004-04-26 10:02 [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
2004-04-26 10:49 ` [Bug c++/15142] " micis at gmx dot de
2004-04-26 11:34 ` [Bug c++/15142] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-04-26 15:00 ` bangerth at dealii dot org
2004-04-26 15:31 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2004-04-26 15:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-04-26 13:54 -------
Here we go:
-----------------
struct B {
B() throw() { }
B(const B&) throw() { }
};
struct X {
B a;
X& operator=(const X&);
};
struct S { S(...); };
void SillyFunc() {
throw S(X());
}
---------------------
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ -c x.cc
x.cc: In function `void SillyFunc()':
x.cc:14: warning: cannot pass objects of non-POD type `struct X' through
`...';
call will abort at runtime
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc: In function `void SillyFunc()':
x.cc:14: warning: cannot pass objects of non-POD type `struct X' through
`...';
call will abort at runtime
x.cc:14: internal compiler error: in cp_expr_size, at cp/cp-lang.c:347
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc
x.cc: In function `void SillyFunc()':
x.cc:14: warning: cannot pass objects of non-POD type `struct X' through
`...';
call will abort at runtime
x.cc:14: internal compiler error: in cp_expr_size, at cp/cp-lang.c:347
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Known to work|3.3.3 |3.3.3 3.3.4
Last reconfirmed|0000-00-00 00:00:00 |2004-04-26 13:54:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15142
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/15142] [3.4/3.5 Regression] Internal compiler error when passing a string where a char* is expecteted in a throw statement
2004-04-26 10:02 [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
` (2 preceding siblings ...)
2004-04-26 15:00 ` bangerth at dealii dot org
@ 2004-04-26 15:31 ` pinskia at gcc dot gnu dot org
2004-04-26 17:54 ` bangerth at dealii dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-26 15:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-26 15:01 -------
This looks similar to bug 11971 which was fixed for 3.4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/15142] [3.4/3.5 Regression] Internal compiler error when passing a string where a char* is expecteted in a throw statement
2004-04-26 10:02 [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
` (3 preceding siblings ...)
2004-04-26 15:31 ` pinskia at gcc dot gnu dot org
@ 2004-04-26 17:54 ` bangerth at dealii dot org
2004-06-01 20:28 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2004-04-26 17:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-04-26 15:37 -------
Except that this one isn't.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15142
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/15142] [3.4/3.5 Regression] Internal compiler error when passing a string where a char* is expecteted in a throw statement
2004-04-26 10:02 [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
` (5 preceding siblings ...)
2004-06-01 20:28 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-01 20:28 ` cvs-commit at gcc dot gnu dot org
2004-06-02 20:30 ` cvs-commit at gcc dot gnu dot org
2004-06-02 20:31 ` jason at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-01 20:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-01 20:28 -------
Subject: Bug 15142
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jason@gcc.gnu.org 2004-06-01 20:28:26
Modified files:
gcc/cp : ChangeLog call.c
Log message:
PR c++/15142
* call.c (call_builtin_trap): Remove type parm.
(convert_arg_to_ellipsis): Change a non-POD argument to integer type.
(build_x_va_arg): Dereference a null pointer for a non-POD argument.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4075&r2=1.4076
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&r1=1.479&r2=1.480
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15142
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/15142] [3.4/3.5 Regression] Internal compiler error when passing a string where a char* is expecteted in a throw statement
2004-04-26 10:02 [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
` (4 preceding siblings ...)
2004-04-26 17:54 ` bangerth at dealii dot org
@ 2004-06-01 20:28 ` cvs-commit at gcc dot gnu dot org
2004-06-01 20:28 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-01 20:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-01 20:28 -------
Subject: Bug 15142
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jason@gcc.gnu.org 2004-06-01 20:28:38
Added files:
gcc/testsuite/g++.dg/overload: ellipsis1.C
Log message:
PR c++/15142
* call.c (call_builtin_trap): Remove type parm.
(convert_arg_to_ellipsis): Change a non-POD argument to integer type.
(build_x_va_arg): Dereference a null pointer for a non-POD argument.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/overload/ellipsis1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15142
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/15142] [3.4/3.5 Regression] Internal compiler error when passing a string where a char* is expecteted in a throw statement
2004-04-26 10:02 [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
` (6 preceding siblings ...)
2004-06-01 20:28 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-02 20:30 ` cvs-commit at gcc dot gnu dot org
2004-06-02 20:31 ` jason at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-02 20:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-02 20:30 -------
Subject: Bug 15142
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: jason@gcc.gnu.org 2004-06-02 20:30:48
Modified files:
gcc/cp : ChangeLog call.c
Log message:
PR c++/15142
* call.c (call_builtin_trap): Remove type parm.
(convert_arg_to_ellipsis): Change a non-POD argument to integer type.
(build_x_va_arg): Dereference a null pointer for a non-POD argument.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.113&r2=1.3892.2.114
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.452.2.17&r2=1.452.2.18
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15142
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/15142] [3.4/3.5 Regression] Internal compiler error when passing a string where a char* is expecteted in a throw statement
2004-04-26 10:02 [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
` (7 preceding siblings ...)
2004-06-02 20:30 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-02 20:31 ` jason at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2004-06-02 20:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jason at gcc dot gnu dot org 2004-06-02 20:31 -------
fixed
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15142
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-06-02 20:31 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-26 10:02 [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
2004-04-26 10:49 ` [Bug c++/15142] " micis at gmx dot de
2004-04-26 11:34 ` [Bug c++/15142] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-04-26 15:00 ` bangerth at dealii dot org
2004-04-26 15:31 ` pinskia at gcc dot gnu dot org
2004-04-26 17:54 ` bangerth at dealii dot org
2004-06-01 20:28 ` cvs-commit at gcc dot gnu dot org
2004-06-01 20:28 ` cvs-commit at gcc dot gnu dot org
2004-06-02 20:30 ` cvs-commit at gcc dot gnu dot org
2004-06-02 20:31 ` jason at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).