c++/8564
Wolfgang Bangerth
bangerth@ticam.utexas.edu
Thu Dec 12 08:06:00 GMT 2002
The following reply was made to PR c++/8564; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c++/8564
Date: Thu, 12 Dec 2002 10:04:47 -0600 (CST)
This patchset:
> 2001-01-03 Jason Merrill <jason@redhat.com>
>
> * init.c (build_default_init): New fn.
> (perform_member_init): Split out from here.
> (build_new_1): Use it. Simplify initialization logic.
> (build_vec_init): Take an array, rather than a pointer and maxindex.
> Speed up simple initializations. Don't clean up if we're assigning.
> * cp-tree.h: Adjust.
> * decl2.c (do_static_initialization): Remove TREE_VEC case.
> * parse.y (new_initializer): Return void_zero_node for ().
> * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
> * typeck2.c (digest_init): Only complain about user-written
> CONSTRUCTORs.
is causing high priority regression PR 8564. The testcase for this PR is
------------------------
struct A { static char* p; };
int i = 1;
char* A::p = new char[i];
void foo() {}
------------------------
It fails like so:
bash-2.05$ ../gcc/bin-2001-01-02/gcc/cc1plus -O -quiet PR8564.cc
PR8564.cc: In function `void __static_initialization_and_destruction_0(int, int)':
PR8564.cc:8: Internal compiler error in find_function_data, at function.c:327
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Regards
Wolfgang
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth
More information about the Gcc-prs
mailing list