This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/2: ICE on template with aggregates
- To: gcc-gnats@gcc.gnu.org
- Subject: c++/2: ICE on template with aggregates
- From: Alfred Minarik <a8601248@unet.univie.ac.at>
- Date: 25 Aug 1999 06:29:42 -0000
- Reply-To: Alfred Minarik <a8601248@unet.univie.ac.at>
- Resent-Cc: gcc-prs@gcc.gnu.org,
- Resent-Reply-To: gnats-admin@gcc.gnu.org, Alfred Minarik <a8601248@unet.univie.ac.at>
- Resent-To: nobody@gcc.gnu.org
>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: