This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15142] [3.4/3.5 Regression] Internal compiler error when passing a string where a char* is expecteted in a throw statement
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 May 2004 21:39:14 -0000
- Subject: [Bug c++/15142] [3.4/3.5 Regression] Internal compiler error when passing a string where a char* is expecteted in a throw statement
- References: <20040426084504.15142.micis@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-05-31 21:39 -------
Jason --
This is caused by the call_builtin_trap() stuff that you added; that function
wants to make a TARGET_EXPR and the backend wants to copy stuff around. Instead
of making a TARGET_EXPR, why not dereference a NULL pointer?
(I think I'd rather that we just issue an error, but maybe a careful reading of
the standard does not permit an error here?)
In any case, please fix this regression.
Thanks,
-- Mark
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at redhat dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15142