This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14106] New: ICE on template func instanciation: stor-layout.c:1569
- From: "gcc-bug at vogtner dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Feb 2004 10:37:38 -0000
- Subject: [Bug c++/14106] New: ICE on template func instanciation: stor-layout.c:1569
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
//
// 2004-02-11 gcc 3.3.2
//
// gcc-3.3.2-20040211.cc: In function `void instanciate() [with T = float]':
// gcc-3.3.2-20040211.cc:15: instantiated from here
// gcc-3.3.2-20040211.cc:13: internal compiler error: in layout_type, at
// stor-layout.c:1569
// Please submit a full bug report,
// with preprocessed source if appropriate.
// See <URL:http://gcc.gnu.org/bugs.html> for instructions.
template<class T>
void j (T i)
{
}
template<typename T>
void instanciate () {
static void (*fp) (T) = j;
__typeof__ (j) *p;
}
template void instanciate<float>();
--
Summary: ICE on template func instanciation: stor-layout.c:1569
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc-bug at vogtner dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14106