public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23562] New: [4.0/4.1 regression] ICE with struct in template function
@ 2005-08-25 16:30 reichelt at gcc dot gnu dot org
2005-08-25 17:20 ` [Bug c++/23562] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-25 16:30 UTC (permalink / raw)
To: gcc-bugs
Since GCC 4.0.0 the following valid code snippet causes an ICE when
compiled with "--param ggc-min-expand=0 --param ggc-min-heapsize=0":
===========================
template<int> void foo()
{
struct A
{
A() { }
};
}
template void foo<0>();
===========================
The error message is:
bug.cc: In function 'void foo()':
bug.cc:6: internal compiler error: tree check: expected statement_list, have
dl_expr in finish_compound_stmt, at cp/semantics.c:1140
Please submit a full bug report, [etc.]
--
Summary: [4.0/4.1 regression] ICE with struct in template
function
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, monitored
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23562
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/23562] [4.0/4.1 regression] ICE with struct in template function
2005-08-25 16:30 [Bug c++/23562] New: [4.0/4.1 regression] ICE with struct in template function reichelt at gcc dot gnu dot org
@ 2005-08-25 17:20 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-25 17:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-25 16:45 -------
*** This bug has been marked as a duplicate of 21687 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23562
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-25 16:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-25 16:30 [Bug c++/23562] New: [4.0/4.1 regression] ICE with struct in template function reichelt at gcc dot gnu dot org
2005-08-25 17:20 ` [Bug c++/23562] " pinskia 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).