c++/2: ICE on template with aggregates
Alfred Minarik
a8601248@unet.univie.ac.at
Tue Aug 24 23:36:00 GMT 1999
>Number: 2
>Category: c++
>Synopsis: ICE on template with aggregates
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 24 23:36:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator: Alfred Minarik <a8601248@unet.univie.ac.at>
>Release: 19990824
>Organization:
>Environment:
Linux pc 2.2.10 #9 Wed Jul 21 15:10:53 MEST 1999 i686 unknown
>Description:
G++ crashes using templates/aggregates.
>How-To-Repeat:
.)compile
% g++ ICE2.cpp
ICE2.cpp: In method `void basic_filebuf<char>::underflow()':
ICE2.cpp:13: instantiated from here
ICE2.cpp:9: Internal compiler error in `expand_expr', at expr.c:5701
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.
-----ICE2.cpp----------------
template<typename _CharT>
struct basic_filebuf
{
virtual void
underflow()
{
int __size = 5;
char __conv_buf[__size];
}
};
template class basic_filebuf<char>;
-----------------------------
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list