public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* patch that caused regression PR 8564
@ 2002-12-12  9:20 Wolfgang Bangerth
  0 siblings, 0 replies; only message in thread
From: Wolfgang Bangerth @ 2002-12-12  9:20 UTC (permalink / raw)
  To: gcc, jason; +Cc: Janis Johnson, Craig Rodrigues


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-12 16:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-12  9:20 patch that caused regression PR 8564 Wolfgang Bangerth

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).