This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/7607: GCC gives an ICE instead of reporting an error.
- From: comer at pisem dot net
- To: gcc-gnats at gcc dot gnu dot org
- Date: 15 Aug 2002 21:24:27 -0000
- Subject: c++/7607: GCC gives an ICE instead of reporting an error.
- Reply-to: comer at pisem dot net
>Number: 7607
>Category: c++
>Synopsis: GCC gives an ICE instead of reporting an error.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Thu Aug 15 14:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Sergey Shandar
>Release: GCC 3.1.1 20020718 (prerelease)
>Organization:
>Environment:
CygWin, Windows 2000
>Description:
main.cpp:3: Internal compiler error in tree_low_cst, at tree.c:3484
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
g++ tmp_char.cpp
>Fix:
template<char i> struct A {};
typedef A<127> B;
int main() { return 0; }
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="tmp_char.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="tmp_char.cpp"
dGVtcGxhdGU8Y2hhciBpPiBzdHJ1Y3QgQSB7fTsNCg0KdHlwZWRlZiBBPDI1NT4gQjsNCg0KaW50
IG1haW4oKSB7IHJldHVybiAwOyB9DQoNCi8qDQpnY2MgdmVyc2lvbiAzLjEuMSAyMDAyMDcxOCAo
cHJlcmVsZWFzZSkNCg0KbWFpbi5jcHA6MzogSW50ZXJuYWwgY29tcGlsZXIgZXJyb3IgaW4gdHJl
ZV9sb3dfY3N0LCBhdCB0cmVlLmM6MzQ4NA0KUGxlYXNlIHN1Ym1pdCBhIGZ1bGwgYnVnIHJlcG9y
dCwNCndpdGggcHJlcHJvY2Vzc2VkIHNvdXJjZSBpZiBhcHByb3ByaWF0ZS4NClNlZSA8VVJMOmh0
dHA6Ly93d3cuZ251Lm9yZy9zb2Z0d2FyZS9nY2MvYnVncy5odG1sPiBmb3IgaW5zdHJ1Y3Rpb25z
Lg0KKi8NCg==