public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9342: [3.3/3.4 regression] another ICE in cp_expr_size at cp/cp-lang.c: 304
@ 2003-01-16 15:22 bangerth
  0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2003-01-16 15:22 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jason, matz, nobody

Synopsis: [3.3/3.4 regression] another ICE in cp_expr_size at cp/cp-lang.c: 304

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu Jan 16 07:21:59 2003
State-Changed-Why:
    Confirmed. A regression in 3.3/3.4 w.r.t. 3.2.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9342


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/9342: [3.3/3.4 regression] another ICE in cp_expr_size at cp/cp-lang.c: 304
@ 2003-01-18 16:21 paolo
  0 siblings, 0 replies; 4+ messages in thread
From: paolo @ 2003-01-18 16:21 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jason, matz, nobody

Synopsis: [3.3/3.4 regression] another ICE in cp_expr_size at cp/cp-lang.c: 304

State-Changed-From-To: analyzed->closed
State-Changed-By: paolo
State-Changed-When: Sat Jan 18 08:21:58 2003
State-Changed-Why:
    Fixed for 3.3 and 3.4.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9342


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/9342: [3.3/3.4 regression] another ICE in cp_expr_size at  cp/cp-lang.c: 304
@ 2003-01-16 20:06 Janis Johnson
  0 siblings, 0 replies; 4+ messages in thread
From: Janis Johnson @ 2003-01-16 20:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/9342; it has been noted by GNATS.

From: Janis Johnson <janis187@us.ibm.com>
To: jason@redhat.com, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, matz@suse.de,
   gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/9342: [3.3/3.4 regression] another ICE in cp_expr_size at 
 cp/cp-lang.c: 304
Date: Thu, 16 Jan 2003 12:05:36 -0800

 This regression showed up starting with this patch:
 
 --- gcc/ChangeLog ---
 2002-08-02  Jason Merrill  <jason@redhat.com>
 
         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
         * langhooks.c (lhd_expr_size): Define default.
         * langhooks.h (struct lang_hooks): Add expr_size.
         * explow.c (expr_size): Call it.
         * expr.c (store_expr): Don't copy an expression of size zero.
         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
 
         to store.
         * Makefile.in (builtins.o): Depend on langhooks.h.
 
 --- gcc/cp/ChangeLog ---
         * cp-lang.c (LANG_HOOKS_EXPR_SIZE): Define.
         (cp_expr_size): New fn.
         * call.c (build_over_call): Lose empty class hackery.
         (convert_arg_to_ellipsis): Promote non-POD warning to error.
         * typeck.c (build_modify_expr): Don't use save_expr on an
 lvalue.
 
 The ICE can be reproduced on i686-linux with the reduced
 test case.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9342
 
 
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* c++/9342: [3.3/3.4 regression] another ICE in cp_expr_size at cp/cp-lang.c: 304
@ 2003-01-16 14:36 matz
  0 siblings, 0 replies; 4+ messages in thread
From: matz @ 2003-01-16 14:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: jason


>Number:         9342
>Category:       c++
>Synopsis:       [3.3/3.4 regression] another ICE in cp_expr_size at cp/cp-lang.c: 304
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 16 06:36:09 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     matz@suse.de
>Release:        GCC 3.3 20030113 (prerelease)
>Organization:
>Environment:
Linux/x86-64
>Description:
This is similar to pr8748 (and many more ICEs in cp_expr_size in the past) but it's not yet fixed in the branch (pr8748 is btw.)
The testcase is short, so it's inline (extracted from some KDE code):
------------ snip -----------
struct QString
{
    QString( const QString & );
    QString &operator=( const QString & );
};
struct ServerSettings
{
    QString user;
};
extern ServerSettings def();
extern void arg( const QString& a );
void startSession( bool b, QString s )
{
    arg (b ? def().user : s);
}
---------- snap -----------
>How-To-Repeat:
> $PATH_3_3/bin/g++ -O -c above.ii
above.ii: In function `void startSession(bool, QString)':
above.ii:14: internal compiler error: in cp_expr_size, at cp/cp-lang.c:304
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-18 16:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-16 15:22 c++/9342: [3.3/3.4 regression] another ICE in cp_expr_size at cp/cp-lang.c: 304 bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-01-18 16:21 paolo
2003-01-16 20:06 Janis Johnson
2003-01-16 14:36 matz

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