This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12253] [tree-ssa] ICE on conversion to std::string inside array initialization
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2003 20:03:06 -0000
- Subject: [Bug c++/12253] [tree-ssa] ICE on conversion to std::string inside array initialization
- References: <20030911210031.12253.stefaandr@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12253
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2003-10-06 20:03:06
date| |
------- Additional Comments From reichelt at gcc dot gnu dot org 2003-10-06 20:03 -------
Confirmed with 3.5-tree-ssa 20031006.
Here's a reduced testcase:
==========================================
struct A
{
~A();
};
template<typename> struct B
{
A a;
B(const char*, const A& = A());
};
extern template class B<char>;
void foo() { B<char> b[] = { "" }; }
==========================================
for which I get
PR12253.ii: In function `void foo()':
PR12253.ii:14: internal compiler error: in gimplify_expr, at gimplify.c:662
Please submit a full bug report, [etc.]