public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12040] New: qt-x11-free-3.2.0 ICEs in build with mainline
@ 2003-08-23  9:46 jss at ast dot cam dot ac dot uk
  2003-08-23 12:29 ` [Bug c++/12040] [3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jss at ast dot cam dot ac dot uk @ 2003-08-23  9:46 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12040

           Summary: qt-x11-free-3.2.0 ICEs in build with mainline
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jss at ast dot cam dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

Reading specs from /data/gcc-3.4/lib/gcc/i686-pc-linux-gnu/3.4/specs
Configured with: '/data/gcc-3.4/tmp/gcc/configure' '--prefix=/data/gcc-3.4
'--enable-languages=c,c++ '--enable-threads
Thread model: posix
gcc version 3.4 20030822 (experimental)

g++ ICEs on qdatetime.cc when building in the moc directory.

[jss@localhost moc]$ g++ -O qdatetime.ii.bz2
../tools/qstring.h: In member function `QString QDate::toString(Qt::DateFormat)
   const':
../tools/qstring.h:1035: internal compiler error: tree check: expected class 'd
   ', have 'r' (indirect_ref) in genrtl_cleanup_stmt, at c-semantics.c:760
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

I think I've reduced this down to a simple testcase:

class mytest
{
public:
  mytest( const mytest & );
  mytest();
  ~mytest();

  mytest &operator+=(const mytest& str);

};

inline const mytest operator+( const mytest &s1, const mytest &s2 )
{
    mytest tmp( s1 );
    tmp += s2;
    return tmp;
}

int main()
{
  mytest a;
  mytest b;

  mytest c = a + b;
  return 0;
}

[jss@localhost jss]$ g++ -O mytest.cc
mytest.cc: In function `int main()':
mytest.cc:14: internal compiler error: tree check: expected class 'd', have 'r'
   (indirect_ref) in genrtl_cleanup_stmt, at c-semantics.c:760
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c++/12040] [3.4 Regression] qt-x11-free-3.2.0 ICEs in build with mainline
  2003-08-23  9:46 [Bug c++/12040] New: qt-x11-free-3.2.0 ICEs in build with mainline jss at ast dot cam dot ac dot uk
@ 2003-08-23 12:29 ` pinskia at gcc dot gnu dot org
  2003-08-29  3:20 ` [Bug c++/12040] [3.4 Regression] tree checking ICE in genrtl_cleanup_stmt reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-23 12:29 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12040


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-checking, ice-on-valid-
                   |                            |code
           Priority|P2                          |P1
   Last reconfirmed|0000-00-00 00:00:00         |2003-08-23 12:29:23
               date|                            |
            Summary|qt-x11-free-3.2.0 ICEs in   |[3.4 Regression] qt-x11-
                   |build with mainline         |free-3.2.0 ICEs in build
                   |                            |with mainline
   Target Milestone|---                         |3.4


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-23 12:29 -------
I can confirm this on the mainline (20030823), it only happens when checking is turned on.

>From Phil's regression hunter: Search converges between 2003-08-20-trunk (#378) and 2003-
08-21-trunk (#379).


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

* [Bug c++/12040] [3.4 Regression] tree checking ICE in genrtl_cleanup_stmt
  2003-08-23  9:46 [Bug c++/12040] New: qt-x11-free-3.2.0 ICEs in build with mainline jss at ast dot cam dot ac dot uk
  2003-08-23 12:29 ` [Bug c++/12040] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2003-08-29  3:20 ` reichelt at gcc dot gnu dot org
  2003-08-29 20:12 ` janis187 at us dot ibm dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-08-29  3:20 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12040


reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored


------- Additional Comments From reichelt at gcc dot gnu dot org  2003-08-29 03:20 -------
Here's an even shorter testcase:

==================================================
struct A
{
    ~A();
};

inline const A foo()
{
    A tmp;
    return tmp;
}

A a = foo();
==================================================


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

* [Bug c++/12040] [3.4 Regression] tree checking ICE in genrtl_cleanup_stmt
  2003-08-23  9:46 [Bug c++/12040] New: qt-x11-free-3.2.0 ICEs in build with mainline jss at ast dot cam dot ac dot uk
  2003-08-23 12:29 ` [Bug c++/12040] [3.4 Regression] " pinskia at gcc dot gnu dot org
  2003-08-29  3:20 ` [Bug c++/12040] [3.4 Regression] tree checking ICE in genrtl_cleanup_stmt reichelt at gcc dot gnu dot org
@ 2003-08-29 20:12 ` janis187 at us dot ibm dot com
  2003-08-29 21:17 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: janis187 at us dot ibm dot com @ 2003-08-29 20:12 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12040


janis187 at us dot ibm dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com


------- Additional Comments From janis187 at us dot ibm dot com  2003-08-29 20:12 -------
The regression in PR 12040 was introduced or exposed by this patch:

--- gcc/gcc/cp/ChangeLog ---

  2003-08-20  Jason Merrill  <jason@redhat.com>

        * semantics.c (simplify_aggr_init_expr): Split out from
        simplify_aggr_init_exprs_r.  Convert slot address to match
        the return type.
        * cp-tree.h: Declare it.
        * tree.c (cp_copy_res_decl_for_inlining): Don't clobber the
        DECL_NAME of a user variable.

The regression hunt took place on i686-pc-linux-gnu using Volker's
shortened test case from comment #2 compiled with -O.


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

* [Bug c++/12040] [3.4 Regression] tree checking ICE in genrtl_cleanup_stmt
  2003-08-23  9:46 [Bug c++/12040] New: qt-x11-free-3.2.0 ICEs in build with mainline jss at ast dot cam dot ac dot uk
                   ` (2 preceding siblings ...)
  2003-08-29 20:12 ` janis187 at us dot ibm dot com
@ 2003-08-29 21:17 ` jason at gcc dot gnu dot org
  2003-09-05  8:13 ` larsbj at lyx dot org
  2003-10-08 14:00 ` reichelt at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2003-08-29 21:17 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12040


jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at redhat dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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

* [Bug c++/12040] [3.4 Regression] tree checking ICE in genrtl_cleanup_stmt
  2003-08-23  9:46 [Bug c++/12040] New: qt-x11-free-3.2.0 ICEs in build with mainline jss at ast dot cam dot ac dot uk
                   ` (3 preceding siblings ...)
  2003-08-29 21:17 ` jason at gcc dot gnu dot org
@ 2003-09-05  8:13 ` larsbj at lyx dot org
  2003-10-08 14:00 ` reichelt at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: larsbj at lyx dot org @ 2003-09-05  8:13 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12040


larsbj at lyx dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |larsbj at lyx dot org


------- Additional Comments From larsbj at lyx dot org  2003-09-05 08:13 -------
*** Bug 12178 has been marked as a duplicate of this bug. ***


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

* [Bug c++/12040] [3.4 Regression] tree checking ICE in genrtl_cleanup_stmt
  2003-08-23  9:46 [Bug c++/12040] New: qt-x11-free-3.2.0 ICEs in build with mainline jss at ast dot cam dot ac dot uk
                   ` (4 preceding siblings ...)
  2003-09-05  8:13 ` larsbj at lyx dot org
@ 2003-10-08 14:00 ` reichelt at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-10-08 14:00 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12040


reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |DUPLICATE


------- Additional Comments From reichelt at gcc dot gnu dot org  2003-10-08 14:00 -------
Duplicate of PR 12519 which got fixed on mainline.


*** This bug has been marked as a duplicate of 12519 ***


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

end of thread, other threads:[~2003-10-08 14:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-23  9:46 [Bug c++/12040] New: qt-x11-free-3.2.0 ICEs in build with mainline jss at ast dot cam dot ac dot uk
2003-08-23 12:29 ` [Bug c++/12040] [3.4 Regression] " pinskia at gcc dot gnu dot org
2003-08-29  3:20 ` [Bug c++/12040] [3.4 Regression] tree checking ICE in genrtl_cleanup_stmt reichelt at gcc dot gnu dot org
2003-08-29 20:12 ` janis187 at us dot ibm dot com
2003-08-29 21:17 ` jason at gcc dot gnu dot org
2003-09-05  8:13 ` larsbj at lyx dot org
2003-10-08 14:00 ` reichelt at gcc dot gnu dot org

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