public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8160: ICE in build_modify_expr, at cp/typeck.c:5494: Array initialization
@ 2002-10-30 16:08 mmitchel
0 siblings, 0 replies; 2+ messages in thread
From: mmitchel @ 2002-10-30 16:08 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, sdementen
Synopsis: ICE in build_modify_expr, at cp/typeck.c:5494: Array initialization
State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Wed Oct 30 16:08:14 2002
State-Changed-Why:
Fixed in GCC 3.2.1.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8160
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/8160: ICE in build_modify_expr, at cp/typeck.c:5494: Array initialization
@ 2002-10-30 9:26 Wolfgang Bangerth
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Bangerth @ 2002-10-30 9:26 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/8160; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c++/8160: ICE in build_modify_expr, at cp/typeck.c:5494: Array
initialization
Date: Wed, 30 Oct 2002 11:24:23 -0600 (CST)
Regression vs. 2.95. Reduced code is this:
-------------------------
template <int D> struct C {
int d[3];
C();
};
template<int D>
C<D>::C() : d((int[]){1,2,3}) {};
template class C<1>;
-----------------------------
I think, this code is actually using a gcc extension
with the (int[]){1,2,3} thingy. I am also not exactly
sure whether this is legal (using "int[]" over "int[3]"),
and changing it to the latter form makes the
bug go away as well.
Nevertheless, it worked with 2.95.
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-31 0:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-30 16:08 c++/8160: ICE in build_modify_expr, at cp/typeck.c:5494: Array initialization mmitchel
-- strict thread matches above, loose matches on Subject: below --
2002-10-30 9:26 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).