This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/7058: ice when using static const strings in classes
- From: mike_mian at yahoo dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 17 Jun 2002 18:18:45 -0000
- Subject: c++/7058: ice when using static const strings in classes
- Reply-to: mike_mian at yahoo dot com
>Number: 7058
>Category: c++
>Synopsis: ice when using static const strings in classes
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Mon Jun 17 11:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: mike_mian@yahoo.com
>Release: gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
>Organization:
>Environment:
Solaris
>Description:
compiled this;
#include <iostream>
#include <string>
class myobj {
public:
static const string s = "bug";
};
and got
bug.cpp:6: Internal compiler error 109.
bug.cpp:6: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
bug.cpp:6: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
>How-To-Repeat:
g++ bug.cpp
>Fix:
none known
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug.cpp"
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKY2xhc3MgbXlvYmogewoJcHVi
bGljOgoJc3RhdGljIGNvbnN0IHN0cmluZyBzID0gImJ1ZyI7Cn07Cgo=